-
Notifications
You must be signed in to change notification settings - Fork 496
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
WIP Fix race condition in get_reconstruct_data #1447
Conversation
I'd like to understand the issue better before we put a bandaid over it. We don't have a repro, so we don't really know if this even fixes it. |
@lubennikovaav is looking for repro steps |
Just want to notice that I tried to insert random sleeps before obtaining layers lock but still failedto reproduce the problem. May be we need to create branches... |
so far @lubennikovaav cannot reproduce this |
3fa7b00
to
acfbb06
Compare
I'm confused on where we stand on this. The bug that this was supposed to bandaid over, is it the same that was fixed by #1601? Can we close this? |
I still think that there is one more race condition.
But it is not true! Lock is obtained and release at each loop iteration. |
@knizhnik , why do you expect that number of traversed layers will be 1? Is it because most of the data is cold and materialization is active enough? I suggest to play safe and commit this fix. We can always optimize it later and remove the lock if we decide that it is totally safe. @hlinnaka , any objections? |
|
After thinking a lot about possible scenarios I also do not see here source of race condition. |
refer #1433