-
Notifications
You must be signed in to change notification settings - Fork 557
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
Adding basic version of DUMP and RESTORE commands #899
Adding basic version of DUMP and RESTORE commands #899
Conversation
@microsoft-github-policy-service agree |
f9c9838
to
2954d6e
Compare
since you only ported the pycrc generated version, it seems we should be okay as it is ... |
@s3w3nofficial, any updates on the open comments? |
Only open comment left is from @badrishc about the renaming which i already implemented, i guess i can close that one ? |
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.
LGTM!
Every test is passing except the RestoreACLsAsync. It throws this exception: "NOAUTH Authentication required.". I can't figure out why. Can you guys please take a look at it ? |
@kevin-montrose, can you help how to fix the ACL unit test here? The error is: |
@badrishc @s3w3nofficial I suspect it's that try/catch not leaving the client in a nice state when an exception is encountered. The pattern elsewhere for ACLs with commands that aren't repeatable is to use a counter to differentiate each invocation.
Works, and all ACL tests pass. |
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.
Lots of little notes for improvements, and a couple questions around correctness.
Hey @kevin-montrose Thanks for the help with test and for the comments. I will try to resolve these over the weekend. Regarding the parsing, i'm working on a parser that support's the whole rdb format and i hope i will be able to implement that one in the future. For now i will look into optimizing the RespLengthEncodingUtils since the parser won't be ready any time soon. |
This PR looks ok, although a few spots for improvement remain:
However, these require deeper surgery than necessary, so we can go ahead and approve/merge this PR as is, and revisit later as per needs. Thank you. |
Currently only work's on string type and does not support compression, but it's still a solid starting point.
Implemented
Not Implemented
Also about the copyright for the crc64, i only ported the pycrc generated version, but still i'm not sure if and which copyright should i add.