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
reduce sqlite tests flakiness #8651
Conversation
Won't cached property introduce a bunch of mem leaks? because we run a new ephemeral node for function call and these valuesa are cached in the python lib level. |
What's interesting is that WAL model should have fixed this race - but seems like we haven't fixed the whole thing. @koenvanderveen any idea how we can fix this? |
I think it will just be garbage collected with the object (node) itself. Am I misunderstanding something? |
it is not used anywhere anymore
This reverts commit a8b4667. There will be a sepearate PR.
Thanks for the comments @yashgorana . We went through the flaky test with Koen and realised that the problem actually lies in 3 places.
# taken from KeyValueStorePartition.init_store
for partition_key in self.unique_cks:
pk_key = partition_key.key
if pk_key not in self.unique_keys:
self.unique_keys[pk_key] = {} |
Description
There was a race condition in initialising backing stores. Using cached property reduces flakiness.
Affected Dependencies
List any dependencies that are required for this change.
How has this been tested?
Checklist