Open AshwinKul28 opened 4 weeks ago
Hi, Can you assign this to me ? Regards, Mayank Jha
Thanks @parzival272000 go for it. 🚀
@parzival272000 whts the status?
HI @parzival272000 , I hope you are doing well. Do you happen to have any updates on this? If you've any doubts please let us know on the discord.
Hi @AshwinKul28 couldn't progress with this yet. You can allot it to someone else, am preoccupied with some stuff
Sure thanks @parzival272000 ,
@mohit-nagaraj if you are still interested, go for it! 🚀
Sure thanks on it
@mohit-nagaraj hope you are doing well. Any updates on the progress? We are targeting these issues little aggressively as we maintaining the commands across two separate servers is getting very cumbersome.
hey i do get it raising a pr tmr
Hey i need to ask a few doubts before raising a pr How to contact one of u guys
Hey, you can reach out to us here or on the discord community.
so while writing test cases how should i write it, could u give a brief overview, i am following this pr https://github.com/DiceDB/dice/pull/1097/files#diff-3941f5aad18919b2441c1d32cc30a869cb791fd4709ff27d8f34b61f0c4c0455
should i just follow it to make the test cases like them? i am little new to writing test cases so..... Wht modifications should i do
Btw i saw prs updating even internal/server/cmd_meta.go
should i also update it
@apoorvyadav1111 @AshwinKul28 @soumya-codes Theres this issue with naming convection for type
so while writing test cases how should i write it, could u give a brief overview, i am following this pr https://github.com/DiceDB/dice/pull/1097/files#diff-3941f5aad18919b2441c1d32cc30a869cb791fd4709ff27d8f34b61f0c4c0455
should i just follow it to make the test cases like them? i am little new to writing test cases so..... Wht modifications should i do
You mostly just need to move the existing tests from async folder to resp folder. Then check if those tests already also exist inside HTTP and websockets folder. If they do, well and good, otherwise, add the same tests in these folders (in HTTP/websocket format, refer to existing tests for these).
A good idea is to see the different PRs already submitted (go to PRs tab, and replace the is:open
filter with is:closed
) and gather inspiration from them.
Btw i saw prs updating even internal/server/cmd_meta.go
should i also update it
Yes
so while writing test cases how should i write it, could u give a brief overview, i am following this pr https://github.com/DiceDB/dice/pull/1097/files#diff-3941f5aad18919b2441c1d32cc30a869cb791fd4709ff27d8f34b61f0c4c0455 should i just follow it to make the test cases like them? i am little new to writing test cases so..... Wht modifications should i do
You mostly just need to move the existing tests from async folder to resp folder. Then check if those tests already also exist inside HTTP and websockets folder. If they do, well and good, otherwise, add the same tests in these folders (in HTTP/websocket format, refer to existing tests for these).
A good idea is to see the different PRs already submitted (go to PRs tab, and replace the
is:open
filter withis:closed
) and gather inspiration from them.
Sure thanks for this info
hey @JyotinderSingh I have added all the test cases thing, but when i tried running the proj, i was getting some error "memory leak". I was able to revert n check one by one to narrow it down to the function. Now i have identified its coming from evalPERSIST. There seems to be some error which is occuring when migrating. Will go through it in detail later. If you have any clue about this do help me out
HI @mohit-nagaraj anything specific did you observe on the "memory leak" please mention it here, since it has not happened before migration, I'm curious to know what's the exact issue. It would be great if you could explain it here or on the discord, and we can try to find some solution to it, so you will be unblocked. We need to move little faster now in the migration work, so please reach out to us for any blockers on discord. Thanks a lot!
@AshwinKul28 Hey i fixed off that thing, it was due to some error in wrongly calling the the persist function. The migration is completely done. I am working on test cases which will be done by today eod
This issue tracks the migration of the mentioned commands - ('DEL', 'EXISTS', 'PERSIST', 'TYPE') to make them compatible across the three protocols supported by the Dice database: RESP, HTTP, and WebSocket. DiceDB now supports more than one protocols (Resp/http/websocket). We don't want eval operation of each command to be strictly bound with any of the protocols. Currently eval function return statements of each command is bounded to the RESP protocol.
The migration is required because:
The goal is to make the command logic protocol-independent, allowing all three protocols to call the same core functionality seamlessly.
Requirements
[Command Name]
to be generic.Migration Steps
Analyze Current Implementation
Refactor Return Logic
evalXXX(args []string, store *dstore.Store) *EvalResponse
under the file/internal/eval/store_eval.go
/errors/migrated_errors.go
file/internal/clientio/resp.go
file as RespType variablesCommand/Worker specific Changes
IsMigrated
flag to true in the commands information under/internal/eval/commands.go
file.NewEval
parameter in the same command structure./internal/eval/eval.go
file./internal/worker/CommandsMeta
map and make it's type asSingleShard
Update Unit Tests
Integration Tests
Checklist
Additional Notes
If there are any questions or concerns about this migration, please mention them here.
Related Issues/PRs