Skip to content
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

fix(string): reset the value of expired key for incrby cmd #2667

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

FishYoung
Copy link
Contributor

@FishYoung FishYoung commented Nov 16, 2024

reset the value of expired key to prevent the following parsing and calculation.

This closes #2660

Copy link
Member

@PragmaTwice PragmaTwice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to add some go test cases to cover the changes?

Related cases can be found here: https://github.com/apache/kvrocks/blob/unstable/tests/gocase/unit/type/incr/incr_test.go .

@PragmaTwice PragmaTwice changed the title fix(types): reset the value of expired key for incrby cmd fix(string): reset the value of expired key for incrby cmd Nov 16, 2024
@FishYoung
Copy link
Contributor Author

Would you like to add some go test cases to cover the changes?

Related cases can be found here: https://github.com/apache/kvrocks/blob/unstable/tests/gocase/unit/type/incr/incr_test.go .

Ok, no problem. I will add the go test cases ASAP

@FishYoung FishYoung force-pushed the fishyoung/fix_expired_key_incr branch from f80db1f to 5ea8d17 Compare November 18, 2024 09:00
@FishYoung FishYoung force-pushed the fishyoung/fix_expired_key_incr branch from 5ea8d17 to 80ffc13 Compare November 18, 2024 09:40
@git-hulk git-hulk merged commit 7611d73 into apache:unstable Nov 18, 2024
32 checks passed
@git-hulk git-hulk added the bug type bug label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug type bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using INCRBY command on an expired key results in unexpected result.
3 participants