-
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
Inconsistent SETBIT
: integer value corresponding to a key cannot be updated using SETBIT
in certain situations
#1115
Comments
@apoorvyadav1111 Can I work on this issue? |
Hi @Yashasv-Prajapati , Would you be taking this up? If not, Shall I go ahead and assign @kaushal-003 to this issue? |
No thanks, please assign it to @kaushal-003 😊 |
Hey @kaushal-003 , assigned. |
In
Here, When we execute the command
This happens because The new byte array now contains |
@Yashasv-Prajapati @apoorvyadav1111, What is the expected behaviour for |
Hi @kaushal-003 , I can dig into this to share the expected behaviour for evalSETBIT. Meanwhile, I would suggest you to try running the same commands in redis and see if that is something acceptable and try to match the results to Redis output. Thanks |
I tried running it on
|
Hello @kaushal-003, 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 have linked the PR resolving the issue; it can only be merged after #1017 is closed. |
Steps to reproduce
a.
SET <key> 10
b.
SETBIT <key> 1 1
c.
SETBIT <key> 3 0
Expected output
The expected output when the above set of commands (maybe when run on Redis) should be the previously set bit on that offset.
Observed output
The observed output when the above set of commands when run on DiceDB
Also, if you try to set the same bit as the previous bit at that offset, it seems to be working fine without any error. Like the following command.
Expectations for resolution
This issue will be considered resolved when the following things are done
dice
code to meet the expected behaviorYou can find the tests under the
integration_tests
directory of thedice
repository and the steps to run are in the README file. Refer to the following links to set up DiceDB and Redis 7.2.5 locallyFollow up
Once this is completed, drop a comment in issue #813 regarding the same.
The text was updated successfully, but these errors were encountered: