-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Report inconsistency in the command INCR
#332
Comments
can i take this up please |
Hey @arpitbbhayani I've run a series of tests to check for inconsistencies and edge cases that weren't originally covered in TESTincr. Here's what I found:
Expected Behavior: The key should be created and set to 1.
Expected Behavior: The value should increment correctly.
Expected Behavior: An error should be returned.
Expected Behavior: An error should be returned.
Expected Behavior: The value should increment correctly without issues.
Expected Behavior: The key should expire as expected during the increment operation, resetting its value to 0 upon expiration.
Expected Behavior: The value should increment to math.MaxInt64 without overflow. Further increments should return an "Out of bounds" error. I tested how the system handles unsupported options by providing empty spaces, tab spaces, and multiple options. It successfully identified and rejected unsupported options. I’m comfortable with the code and test structure, i found some of tests can be added to the TESTIncr, should i raise a PR for it, I am beginner in golang but can understand the codebase. : @arpitbbhayani Also additionally, I was testing it with JSON.SET var and different structures, It returns PONG for them and when i pass it some arguements it return incorrect Args for "ping" command. So when these commands get implemented with can test it here too for edge cases by doing INCR on these structures. |
Inconsistencies found only with the error messages and not in functionality.
Cases working correctly:
To test with keys that have expiry I had to run the following:
This can be achieved by using SETEX. Could be a good addition. |
I completely agree with @Maveric-k07, error messages are different and can be made consistent, And yes i agree that FLUSHALL command will be good to have. @Maveric-k07 can work on making error messages consistent |
Having multiple PRs for this might not be a good idea. Can you take up the change in error messages as well? @vanshavenger or I can push my commits to your pr once you're done |
I guess i make some commits and then you can push changes to my PR or vice-versa |
@Maveric-k07 @vanshavenger Thanks for all the work. Are you guys still waiting for Arpit's response to this? |
@vanshavenger can you take up the changes in the error messages as well please, it's a small change in addition to the test cases you wanted to add. feel free to ping in the the discord channel. |
@Maveric-k07 I may not get the time before the weekends because of the job, will raise a PR for Tests suite by night as they are already handy with me, last time i made |
Hey @vanshavenger I Hope you are doing well. Can you please update any latest findings or work you have done? |
Hello @Maveric-k07, There has been no activity on this issue for the past 5 days. We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work. Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out. Thanks again. |
I will make the necessary changes, I was waiting on vansh for an update but I'll create a PR today. |
Hello @Maveric-k07, There has been no activity on this issue for the past 5 days. We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work. Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out. Thanks again. |
Co-authored-by: Jyotinder Singh <jyotindrsingh@gmail.com>
Co-authored-by: Jyotinder Singh <jyotindrsingh@gmail.com>
This issue is all about ensuring we are as close to Redis as possible. The command in focus for this issue is
INCR
.Go through the official documentation of the command
INCR
on Redis and identify the inconsistencies. The inconsistencies could be inBecause we are trying to be compatible with Redis v7.2.5, I would recommend you try out different variants of the command with different inputs on that specific version. The instructions on running Redis v7.2.5 locally
Once you find the discrepancy, you can either
If you are raising the issue, make sure you provide the details such as
Also, feel free to update the documentation and raise the PR in the docs repository.
The text was updated successfully, but these errors were encountered: