-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support report libname and libver to Redis #3356
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error: testCredentialsProvider(redis.clients.jedis.JedisPooledTest) Time elapsed: 0.01 s <<< ERROR!
redis.clients.jedis.exceptions.JedisDataException: NOAUTH Authentication required.
at redis.clients.jedis.JedisPooledTest.testCredentialsProvider(JedisPooledTest.java:246)
79b23f9
to
3af2dbd
Compare
3af2dbd
to
29f7c60
Compare
redis#3338 Co-authored-by: M Sazzadul Hoque <[email protected]>
Co-authored-by: M Sazzadul Hoque <[email protected]>
91ac203
to
b818117
Compare
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #3356 +/- ##
============================================
+ Coverage 67.11% 67.14% +0.03%
- Complexity 4680 4690 +10
============================================
Files 266 268 +2
Lines 15133 15179 +46
Branches 952 959 +7
============================================
+ Hits 10156 10192 +36
- Misses 4565 4573 +8
- Partials 412 414 +2
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
src/test/java/redis/clients/jedis/commands/jedis/ClientCommandsTest.java
Outdated
Show resolved
Hide resolved
src/test/java/redis/clients/jedis/commands/jedis/ClientCommandsTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: M Sazzadul Hoque <[email protected]>
|
@Override | ||
public String clientSetInfo(ClientAttributeOption attr, String value) { | ||
checkIsInMultiOrPipeline(); | ||
connection.sendCommand(CLIENT, SETINFO.getRaw(), attr.getRaw(), encode(value)); | ||
return connection.getStatusCodeReply(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Discussion]
@yangbodong22011 WDYT about removing this support from Jedis class? Meaning to keep the usages of SETINFO only internally.
redis/redis#11758 mentions it is for Client libraries, not necessarily for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope to keep the status quo. Although users do not need to actively set it in most cases, if users want to force it, we can still support it. And redis-cli
or sendCommand
can also accomplish the same function.
Due to this change, Jedis 4.4.0 does not work with pre-7.2 Redis servers.
|
Please state which Redis version you are using. It'd be more helpful with the error, stacktrace, etc. The doc just says ignore failures but doesn't specify those failures. We tried to identify failures as much as we could. According to my testing, this works fine from Redis 6.2. According to my knowledge, this should work fine from Redis 5.0. That leaves us pre-5.0. Frankly, that's not officially supported anymore. |
Ah, my apologies. This is indeed with a very old Redis server. I didn't expect that would affect Jedis' error handling. |
@pvarga88 No problem. Sharing information is how we can improve. FYI, there can be a fix coming for Redis 4.0 |
- fixes library usage for jupiter by applying an disabled ClientSetInfoConfig - see https://redis.io/docs/latest/commands/client-setinfo/ and redis/jedis#3356 (has follow-ups) Fixes: SIRI-921
Reference: redis/redis#11758
Resolves #3338