[Java] Fix the issue that the cached value in RayObject is serialized (#7613)

This commit is contained in:
Hao Chen 2020-03-17 22:07:41 +08:00 committed by GitHub
parent 6b888b0247
commit 7678418210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,12 @@ public final class RayObjectImpl<T> implements RayObject<T>, Serializable {
* Note, this is necessary for direct calls, in which case, it's not allowed to call `Ray.get` on
* the same object twice.
*/
private T object;
private transient T object;
/**
* Whether the object is already gotten from the object store.
*/
private boolean objectGotten;
private transient boolean objectGotten;
public RayObjectImpl(ObjectId id) {
this.id = id;