Skip to content
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

Lock concurrent compiles of the same query #6349

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Lock concurrent compiles of the same query #6349

merged 1 commit into from
Mar 4, 2024

Conversation

fantix
Copy link
Member

@fantix fantix commented Oct 24, 2023

Concurrent compile requests of the same query (against the same dbver) should only be processed once.

Details are explained in each commit message.

@fantix fantix force-pushed the locked-compile branch 3 times, most recently from 6928bfd to ba8d579 Compare October 25, 2023 04:38
@fantix fantix marked this pull request as ready for review October 25, 2023 14:13
@fantix fantix requested review from 1st1 and elprans October 25, 2023 14:13
@fantix fantix mentioned this pull request Dec 11, 2023
9 tasks
msullivan added a commit that referenced this pull request Mar 1, 2024
We don't need to query or set __internal_testmode in order to create a
database from a template anymore. Clean up that code.

This will also fix a flake, probably, but we *are* planning to fix it
more properly (see #6349).
msullivan added a commit that referenced this pull request Mar 1, 2024
We don't need to query or set __internal_testmode in order to create a
database from a template anymore. Clean up that code.

This will also fix a flake, probably, but we *are* planning to fix it
more properly (see #6349).
We cannot use a Future in the LRU mapping, because we don't want to
invalidate an old cache item if the new compile result turns to be not
cacheable; and we can only know such thing after the compilation.
@fantix fantix requested a review from msullivan March 4, 2024 20:48
@fantix fantix merged commit f2ee48d into master Mar 4, 2024
24 checks passed
@fantix fantix deleted the locked-compile branch March 4, 2024 22:35
msullivan added a commit that referenced this pull request Mar 7, 2024
We don't need to query or set __internal_testmode in order to create a
database from a template anymore. Clean up that code.

This will also fix a flake, probably, but we *are* planning to fix it
more properly (see #6349).
msullivan pushed a commit that referenced this pull request Mar 7, 2024
We cannot use a Future in the LRU mapping, because we don't want to
invalidate an old cache item if the new compile result turns to be not
cacheable; and we can only know such thing after the compilation.
msullivan added a commit that referenced this pull request Mar 7, 2024
We don't need to query or set __internal_testmode in order to create a
database from a template anymore. Clean up that code.

This will also fix a flake, probably, but we *are* planning to fix it
more properly (see #6349).
msullivan pushed a commit that referenced this pull request Mar 7, 2024
We cannot use a Future in the LRU mapping, because we don't want to
invalidate an old cache item if the new compile result turns to be not
cacheable; and we can only know such thing after the compilation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants