-
Notifications
You must be signed in to change notification settings - Fork 578
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
commitChanges async api #727
commitChanges async api #727
Conversation
Attaching logs file for deadlock issues observed. |
@paulmchen @JohnSully Hi John, here is the PR for the async commit which we went over last Friday. Please help review when you get a chance. @AnkitaSuman07 For the issue you are facing today, please share more details in this PR with John. |
Hi John, I observed the AePostFunction callback function is not processed and waits forever. There was no keydb crash observed but there is this never ending wait in the task queue. Please let me know if you can see anything is not correct |
@JohnSully John, could you please take a look at this PR and see if the change makes sense. Thank you. |
the following is subset of log since we log everytime when those functions are invoked and the whole log is huge. The problem is not consistent reproducible so we had to let the memtier run a bit while, eventually it stuck at beginwritebatch. |
@JohnSully Could you please check the issue mentioned in the previous message by @yzhao244? We think the problem could be listed in 3, but we would like to hear your thoughts. Thank you. |
@JohnSully Also, we would like to ask your opinion how to block clients in commitChanges.
|
src/db.cpp
Outdated
auto *tok = m_spstorage->begin_endWriteBatch(serverTL->el, storageLoadCallback); | ||
if (tok != nullptr) | ||
{ | ||
for (client *c : setcBlocked) //need to check how to push client to blocked list |
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.
Since this code doesn't work lets remove it.
…rints, removed unwanted reset of pointers
@JohnSully a quick update. Ankita has resolved code review comments. :) |
Hi John,
Please review. I am testing SET commands and just did basic testing now. This might not be ready to merge yet until I validate the changes but please provide your review comments. Thanks