5cfa1934e4a2157d07ef534e1033a3f0e5bc1082,python/ray/experimental/client/server/server.py,RayletServicer,GetObject,#RayletServicer#Any#Any#,86

Before Change


        return ray_client_pb2.TerminateResponse(ok=True)

    def GetObject(self, request, context=None):
        request_ref = cloudpickle.loads(request.handle)
        if request_ref.binary() not in self.object_refs:
            return ray_client_pb2.GetResponse(valid=False)
        objectref = self.object_refs[request_ref.binary()]
        logger.info("get: %s" % objectref)

After Change


        return ray_client_pb2.TerminateResponse(ok=True)

    def GetObject(self, request, context=None):
        return self._get_object(request, "", context)

    def _get_object(self, request, client_id: str, context=None):
        if request.id not in self.object_refs[client_id]:
            return ray_client_pb2.GetResponse(valid=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 5cfa1934e4a2157d07ef534e1033a3f0e5bc1082
Time: 2020-12-18
Author: me@barakmich.com
File Name: python/ray/experimental/client/server/server.py
Class Name: RayletServicer
Method Name: GetObject


Project Name: ray-project/ray
Commit Name: e715ade2d1026d1ca381b463fbb482c30acd3d93
Time: 2020-12-20
Author: me@barakmich.com
File Name: python/ray/experimental/client/worker.py
Class Name: Worker
Method Name: call_remote


Project Name: ray-project/ray
Commit Name: 5cfa1934e4a2157d07ef534e1033a3f0e5bc1082
Time: 2020-12-18
Author: me@barakmich.com
File Name: python/ray/experimental/client/server/server.py
Class Name: RayletServicer
Method Name: PutObject