Closed piotrp closed 4 years ago
Hey, thanks for this. Seems these changes break the tests though, could you try running them on your side? You'll need to make start_redis_instances
, followed by make test
.
Here's what I'm getting: https://gist.github.com/pintsized/bff6c6beaa4799762788a32fcd1a8884
Oops... sorry for that, fixed.
There were two issues, both in my first commit:
:connect
didn't account for Sentinels: :connect
tries to set database, which is an unsupported operation in Redis Sentinel, and possibly that's why error handling of that call was originally omitted.Hello, @pintsized, were you able to look into this MR?
Hey, I'm really sorry I seem to have totally forgotten about this. I managed to get travis CI working on this repo, if you rebase it should pick that up and build your pr.
Otherwise, yep LGTM. Looks like there's a 2-space indentation on line 363 if you feel like making it perfect ;)
Invalid formatting is a perfectly valid issue, rebased and fixed :)
A few fixes separated into a few commits:
set_keepalive
only when we are sure that Sentinel responded correctly - it may have timed out, and we don't want to put such connection in poolset_keepalive
always when Sentinel responded correctly, regardless of result of connecting to indicated Redis instance