awslabs / aws-elasticache-cluster-client-memcached-for-java

Amazon ElastiCache Cluster Client for Java - enhanced library to connect to ElastiCache clusters.
http://docs.amazonwebservices.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.html
Apache License 2.0
87 stars 54 forks source link

Fix await 50 sec issue during client initialization #24

Closed YueTang-Vanessa closed 2 years ago

YueTang-Vanessa commented 2 years ago

Issue #, if available:

Description of changes: There may have a race condition during client initialization time. When the race condition happens, the MemcachedClient thread will need to wait for 50 secs ( defined previously) to move to next step. This commit will prevent this condition.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.