Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hazelcast/invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _notify_error(self, invocation, error):

def _should_retry(self, invocation, error):
if invocation.connection and isinstance(error, (IOError, TargetDisconnectedError)):
return True
return False

if invocation.uuid and isinstance(error, TargetNotMemberError):
return False
Expand Down
4 changes: 2 additions & 2 deletions tests/reconnect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_listener_re_register(self):
"cluster_connect_timeout": 5.0,
})

map = client.get_map("map")
map = client.get_map("map").blocking()

collector = event_collector()
reg_id = map.add_entry_listener(added_func=collector)
Expand All @@ -83,7 +83,7 @@ def assert_events():
if client.lifecycle_service.is_running():
while True:
try:
map.put("key-%d" % count.get_and_increment(), "value").result()
map.put("key-%d" % count.get_and_increment(), "value")
break
except TargetDisconnectedError:
pass
Expand Down