-
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
Avoid using QUIT command #3353
Avoid using QUIT command #3353
Conversation
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 #3353 +/- ##
============================================
+ Coverage 67.02% 67.07% +0.04%
+ Complexity 4661 4657 -4
============================================
Files 263 263
Lines 15101 15072 -29
Branches 952 947 -5
============================================
- Hits 10122 10109 -13
+ Misses 4570 4556 -14
+ Partials 409 407 -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. |
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.
Both Connection and Jedis has quit()
methods. Deprecate those and suggest users to use disconnect()
in javadoc.
Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: redis#2105 redis#2108
8abb09e
to
4eceb1a
Compare
done |
Co-authored-by: M Sazzadul Hoque <[email protected]>
Co-authored-by: M Sazzadul Hoque <[email protected]>
* Jedis avoid using QUIT command Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: redis#2105 * Update src/main/java/redis/clients/jedis/Connection.java Co-authored-by: M Sazzadul Hoque <[email protected]> * Apply suggestions from code review Co-authored-by: M Sazzadul Hoque <[email protected]> --------- Co-authored-by: M Sazzadul Hoque <[email protected]> --------- Conflicts: src/main/java/redis/clients/jedis/Connection.java src/main/java/redis/clients/jedis/ConnectionFactory.java src/main/java/redis/clients/jedis/Jedis.java src/main/java/redis/clients/jedis/Protocol.java
Backport of #3353 --------- Please refer to: redis/redis#11420 This PR cancels calling the quit command when the Jedis internal link is abnormal, and deprecate the user interface `Jedis.quit()`. This optimizes Jedis connection pool performance and fixes: #2105 --------- Conflicts: src/main/java/redis/clients/jedis/Connection.java src/main/java/redis/clients/jedis/ConnectionFactory.java src/main/java/redis/clients/jedis/Jedis.java src/main/java/redis/clients/jedis/Protocol.java * more changes * Modify makeObject() for Jedis 3.x --------- Co-authored-by: bodong.ybd <[email protected]>
Address 'Address+Fix redis#3353'
Address 'Address+Fix redis#3353'
Please refer to: redis/redis#11420
This PR cancels calling the quit command when the Jedis internal link is abnormal, but the user interface
Jedis.quit()
is not affected. This optimizes Jedis connection pool performance and addresses #2105 and #2108See comments for some code details.