-
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
Jedis 4 #2693
Conversation
Congratulations, a big change, first of all trust our unit tests. |
We plan to no longer support ShardedJedis? |
@yangbodong22011 That's not a priority ATM. But I hope to re-implement it with parallel paradigm of cluster mode. |
Codecov Report
@@ Coverage Diff @@
## master #2693 +/- ##
============================================
- Coverage 59.39% 57.11% -2.29%
- Complexity 2586 2818 +232
============================================
Files 133 169 +36
Lines 11995 10425 -1570
Branches 564 611 +47
============================================
- Hits 7125 5954 -1171
+ Misses 4640 4252 -388
+ Partials 230 219 -11
Continue to review full report at Codecov.
|
@sazzad16 It seems that the |
@yangbodong22011 I just wasn't sure about the importance of it. So I have not restored it. |
Such usage exists in our customers, so we need to restore it back. If you agree, I will introduce and test the recovery of |
I think we should take this opportunity to at least run the unit tests against the latest minor version of the included libraries. For instance junit 4.13.2 has been released since February. Let's update the poms. It looks like code coverage decreases by 10% - so I think we should increase tests here as well, as part of merging. I like the way commands are now split - it'll make implementation of missing commands much easier. |
Some missing commands - there are others. EXEC
|
|
@chayim Does it mean we are now allowed to take some time for that? |
This pull request introduces 4 alerts when merging 61197d6 into 71cd5f1 - view on LGTM.com new alerts:
|
We've finally merged the PR. Thank you @yangbodong22011, @AvitalFineRedis and @chayim. |
Hey @sazzad16, I realise that this is just in RC state at the moment, but is there already any documentation about how to use Sharding, Pipelining, and especially pipelining with shards in version 4.0.0 so I can have a look already? |
@YNedderhoff Sorry, there aren't enough documentation at this moment. We need both time and resource for that. Hopefully we'll get there. In the mean time,
Then new code would be
I hope, this is helpful for you. |
Thank you, it is! Especially pleased to see that there will be a solution for sharded pipelining, as this PR had us all worried: #2488 (comment). Any ETA on that? We're basically stuck on 3.x until that is there in 4.x. Just asking for our planning I suppose. |
@YNedderhoff Jedis-4.0.0-RC1 is already out. Final release could be next week. |
Right - thank you! |
@YNedderhoff FYI, in #2731 I have renamed JedisClusterPipelineTest to ClusterPipelineTest, added ShardedPipelineTest. Also added easier constructors for related classes. |
Thanks for the update! |
Thanks for the update! + 1 |
syncAndReturnAll is useful ! |
@dalei2019 Do you want the |
Yes!It's very useful! |
@dalei2019 Simply maintain a
|
@sazzad16 Maybe this is the wrong place for this, however I'm seeing removals of functionality without documentation on replacement. I'm currently upgrading my team's codebase to Jedis 4. Currently, we're leveraging |
I think that comment above by @sazzad16 sums it up. But yeah I agree, I'd have loved some migration documentation as well, ideally in time for release. |
@MSPigl Only now that you have mentioned, we have just realized that Could you please describe you usage of |
Description
Changes for Jedis 4
Added RedisJSON and RedisJSON 2 support
Added RediSearch support
Introduced JedisPooled, an easier to use JedisPool
Introduced JedisSharding, replacing ShardedJedisPool and related classes
Introduced ClusterPipeline and ShardedPipeline
Introduced ReliableTransaction