Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait until client receives member shutdown in ClientCacheThroughHazel…
…castInstanceTest (#18658) (#19195) In `getCache_whenOwnerInstanceIsShutdown_thenOperateOnCacheFails`, we shutdown the owner instance, and than make a put request from the client. On a sunny day, we expect to get HazelcastClientNotActiveException since the request is made after calling the instance shutdown. But on some occasions, it might happen that although the member shutdown process is complete, the client might not be aware of it yet. If we make a put request in this scenario, the client will try to route put request to shutdown member, get the connection close event some time after, set the invocation with the TargetDisconnectedError. Since the put request is not retryable, the client will finalize the put request with this exception and the test will fail. As a solution, before making the put request, we wait until the connection related to the shutdown member is removed from the client.
- Loading branch information