HubSpot/java-memcached-client — pull request #1 by eabbott (2014-04-25 19:03:28+00:00)
Title: Force dns resolution on connection retry

DNS resolution is only done once on initialization. We can trigger memcached clients to reload through Mothra. It appears many java systems do not listen for changed mothra params as evidenced after the past few memcached swaps. Forcing DNS resolution should provide a nice catch all solution for the stragglers.

With this in place, we'll be able to change the mothra param which will trigger many java apps to properly fail over to the new memcached server(s). The next step is always to flush the cache on the old memcached servers. Instead of flushing the cache via the memcached protocol, we can restart the process. The changes in this PR will be triggered by that connection being dropped and will reconnect to the new memcached servers.