-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Redis servers that disable CLIENT command
See #192. Before this commit, we would not handle the case where the Redis server had disabled CLIENT commands. In that case, when using noreply_* functions (which issue CLIENT commands under the hood), we would mess up the state of the ETS table used for queueing commands to reply to. That would show up as a hard-to-debug ArgumentError because of an unhandled :"$end_of_table" return value from :ets.first/1. With this commit, we made a couple of fixes to: * Handle empty ETS request queues * Handle errors returned by "CLIENT REPLY OFF" in Redix.noreply_pipeline/3 We also added a new Docker Compose Redis instance to test against a server that disables CLIENT commands.
- Loading branch information
1 parent
6cc0e70
commit 10b3193
Showing
6 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM redis:6.0.0-alpine | ||
|
||
COPY ./redis.conf redis.conf | ||
|
||
CMD ["redis-server", "./redis.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rename-command CLIENT "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters