path: root/glustolibs-misc
diff options
authorkshithijiyer <>2020-04-16 16:44:01 +0530
committerkshithijiyer <>2020-04-16 16:55:06 +0530
commitfb77a9055e12b753d202d55d4e44776735588160 (patch)
treed73ba860185fdc83de5cae97d620e94447cc2d3b /glustolibs-misc
parent5b93ecfcb7b9dc591da9cbbe39efd1ec1b1c38ac (diff)
[Testfix] Fix rpyc_get_connection() issue in test_metadata_self_heal
Problem: `g.rpyc_get_connection()` has a limitaion where it can't convert python2 calls to python3 calls. Due to this a large number of testcases fail when executed from a python2 machine on a python3 only setup or visa versa with the below stack trace: ``` E ========= Remote Traceback (1) ========= E Traceback (most recent call last): E File "/root/tmp.tL8Eqx7d8l/rpyc/core/", line 323, in _dispatch_request E res = self._HANDLERS[handler](self, *args) E File "/root/tmp.tL8Eqx7d8l/rpyc/core/", line 591, in _handle_inspect E if hasattr(self._local_objects[id_pack], '____conn__'): E File "/root/tmp.tL8Eqx7d8l/rpyc/lib/", line 110, in __getitem__ E return self._dict[key][0] E KeyError: (b'rpyc.core.service.SlaveService', 94282642994712, 140067150858560) ``` Solution: Write generic code which can run from python2 to python3 and visa-versa Change-Id: I7783485a784ef4b57f626f77e6012d918fee6032 Signed-off-by: kshithijiyer <>
Diffstat (limited to 'glustolibs-misc')
0 files changed, 0 insertions, 0 deletions