fakesqldb: Guard query log usage with lock#12813
Merged
dbussink merged 3 commits intovitessio:mainfrom Apr 3, 2023
Merged
Conversation
This lock is used around adding to the query log, but it means we also need to use the lock when reading from it or when resetting it. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
frouioui
approved these changes
Apr 3, 2023
vmg
approved these changes
Apr 3, 2023
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
We've been adding a lot of tests for the evalengine and we're bumping up to the timeout. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
f649611 to
c143a9b
Compare
Contributor
|
I was unable to backport this Pull Request to the following branches: |
timvaillancourt
pushed a commit
to slackhq/vitess
that referenced
this pull request
Aug 20, 2024
* fakesqldb: Guard query log usage with lock This lock is used around adding to the query log, but it means we also need to use the lock when reading from it or when resetting it. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * grpcvtctldserver: Fix alias for loop reuse Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * unit_race: Increase runtime We've been adding a lot of tests for the evalengine and we're bumping up to the timeout. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> --------- Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
4 tasks
timvaillancourt
added a commit
to slackhq/vitess
that referenced
this pull request
Aug 20, 2024
…492) * WIP Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * update all flags Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * update e2e flag test Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * 2 missing flags Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * rename Type() Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * empty commit to test ci Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * fakesqldb: Guard query log usage with lock (vitessio#12813) * fakesqldb: Guard query log usage with lock This lock is used around adding to the query log, but it means we also need to use the lock when reading from it or when resetting it. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * grpcvtctldserver: Fix alias for loop reuse Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * unit_race: Increase runtime We've been adding a lot of tests for the evalengine and we're bumping up to the timeout. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> --------- Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * remove t.Parallel() like upstream did Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> --------- Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Co-authored-by: Dirkjan Bussink <d.bussink@gmail.com>
makinje16
pushed a commit
to slackhq/vitess
that referenced
this pull request
Aug 28, 2024
…492) * WIP Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * update all flags Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * update e2e flag test Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * 2 missing flags Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * rename Type() Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * empty commit to test ci Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> * fakesqldb: Guard query log usage with lock (vitessio#12813) * fakesqldb: Guard query log usage with lock This lock is used around adding to the query log, but it means we also need to use the lock when reading from it or when resetting it. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * grpcvtctldserver: Fix alias for loop reuse Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * unit_race: Increase runtime We've been adding a lot of tests for the evalengine and we're bumping up to the timeout. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> --------- Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * remove t.Parallel() like upstream did Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> --------- Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Co-authored-by: Dirkjan Bussink <d.bussink@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This lock is used around adding to the query log, but it means we also need to use the lock when reading from it or when resetting it.
We've seen this cause race test failures which look like this:
Checklist