-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Client setinfo ignore all exception #3449
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
Conversation
d5dbf87 to
160cb28
Compare
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #3449 +/- ##
============================================
- Coverage 71.27% 71.23% -0.05%
- Complexity 4736 4740 +4
============================================
Files 274 275 +1
Lines 14697 14738 +41
Branches 991 989 -2
============================================
+ Hits 10476 10499 +23
- Misses 3789 3808 +19
+ Partials 432 431 -1
☔ View full report in Codecov by Sentry. |
src/main/java/redis/clients/jedis/DefaultJedisClientConfig.java
Outdated
Show resolved
Hide resolved
2929574 to
3895341
Compare
3895341 to
b4c9df4
Compare
Check the character legality of clientName in advance through validateClientInfo, so that character exceptions are ignored in initializeFromClientConfig. The remaining errors, NOAUTH, UNKNOWN command, SYNTAX error, NOPREM should be ignored.
b4c9df4 to
e6910e5
Compare
This PR contains the following changes: 1. Check the character legality of clientName in advance through `validateClientInfo`, so that character exceptions are ignored in `initializeFromClientConfig`. 2. Move the `select` command out of the fire-and-forget message (we care about its return value). 3. For the test of RedisCredentials, we gave it "invalidPass" for the first time to make it fail the verification instead of skipping the verification.
This PR contains the following changes: 1. Check the character legality of clientName in advance through `validateClientInfo`, so that character exceptions are ignored in `initializeFromClientConfig`. 2. Move the `select` command out of the fire-and-forget message (we care about its return value). 3. For the test of RedisCredentials, we gave it "invalidPass" for the first time to make it fail the verification instead of skipping the verification. --------- Co-authored-by: bodong.ybd <[email protected]>
This PR contains the following changes (fixes #3438):
validateClientInfo, so that character exceptions are ignored ininitializeFromClientConfig.selectcommand out of the fire-and-forget message (we care about its return value).