taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.15k stars 130 forks source link

Connection pool doesn't seem to recover from interrupted Redis connectivity #172

Closed oxtoacart closed 8 years ago

oxtoacart commented 8 years ago

I'm observing some weird behavior with the connection pooling. The following steps cause a problem:

  1. Start a long-running client
  2. Stop redis
  3. See that new requests encounter connection errors like "connection refused" and "connection reset"
  4. Start redis
  5. See that new requests still encounter errors, either with the connection or depending on timing "Redis is still loading the dataset into memory"
  6. Even after waiting for Redis to finish starting, we repeatedly encounter the same error on trying to query Redis

It feels almost as if the connections were established while Redis was still down and keep getting reused even though they're no longer any good.

Related to https://github.com/getlantern/lantern/issues/4676

cc: @uaalto

oxtoacart commented 8 years ago

cc: @myleshorton

oxtoacart commented 8 years ago

Apologies, I'm pretty sure that this was a problem in my own code, unrelated to carmine and redis.