-
Notifications
You must be signed in to change notification settings - Fork 472
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
refactor(stream): change the encoding of stream consumer group #2384
refactor(stream): change the encoding of stream consumer group #2384
Conversation
Should |
Can we merge this PR? |
@Yangsx-1 You can merge PR once the CI passed |
There is one issue that needs to be considered: after the modification, the case where As I mentioned here. |
5f359e9
to
36e4483
Compare
It's been changed now. |
@@ -306,7 +306,7 @@ var streamTests = func(t *testing.T, enabledRESP3 string) { | |||
require.Len(t, rdb.XRange(ctx, "vipstream", "(1-0", "(42-42").Val(), 1) | |||
require.ErrorContains(t, rdb.XRange(ctx, "vipstream", "(-", "+").Err(), "ERR") | |||
require.ErrorContains(t, rdb.XRange(ctx, "vipstream", "-", "(+").Err(), "ERR") | |||
require.ErrorContains(t, rdb.XRange(ctx, "vipstream", "(18446744073709551615-18446744073709551615", "+").Err(), "ERR") | |||
require.ErrorContains(t, rdb.XRange(ctx, "vipstream", "(18446744073709551614-18446744073709551615", "+").Err(), "ERR") |
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.
What will happen if it's 18446744073709551615
instead of 18446744073709551614
here?
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.
There would be a nil answer rather than an error.
Hi @torwig, could you please review this PR when you have some time? |
@PragmaTwice Sure. I'll review it today. |
@Yangsx-1 @PragmaTwice Since we have |
Yes, i'll change these code later. |
dc3d2c5
to
9ca0a81
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
The encoding way of stream consumer group is not efficient, this PR changes the encoding according to this discussion.