mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 01:55:25 +08:00
[Java] Fix the issue that the cached value in RayObject is serialized (#7613)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user