-
Notifications
You must be signed in to change notification settings - Fork 2k
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
multiple data-race detected #12098
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/testing
Test related issues
type/bug
Comments
shoenig
changed the title
data-race detected in state store
multiple data-race detected
Feb 21, 2022
lgfa29
added
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/testing
Test related issues
labels
Feb 22, 2022
tgross
added a commit
that referenced
this issue
Apr 12, 2022
The plugin manager for CSI hands out instances of a plugin for callers that need to mount a volume. The `MounterForPlugin` method accesses the internal instances map without a lock, and can be called concurrently from outside the plugin manager's main run-loop. The original commit for the instances map included a warning that it needed to be accessed only from the main loop but that comment was unfortunately ignored shortly thereafter, so this bug has existed in the code for a couple years without being detected until we ran tests with `-race` in #12098. Lesson learned here: comments make for lousy enforcement of invariants!
tgross
added a commit
that referenced
this issue
Apr 12, 2022
These tests have a data race where the test assertion is reading a value that's being set in the `listenFunc` goroutines that are subscribing to registry update events. Move the assertion into the subscribing goroutine to remove the race. This bug was discovered in #12098 but does not impact production Nomad code.
tgross
added a commit
that referenced
this issue
Apr 12, 2022
The plugin manager for CSI hands out instances of a plugin for callers that need to mount a volume. The `MounterForPlugin` method accesses the internal instances map without a lock, and can be called concurrently from outside the plugin manager's main run-loop. The original commit for the instances map included a warning that it needed to be accessed only from the main loop but that comment was unfortunately ignored shortly thereafter, so this bug has existed in the code for a couple years without being detected until we ran tests with `-race` in #12098. Lesson learned here: comments make for lousy enforcement of invariants!
tgross
added a commit
that referenced
this issue
Apr 14, 2022
These tests have a data race where the test assertion is reading a value that's being set in the `listenFunc` goroutines that are subscribing to registry update events. Move the assertion into the subscribing goroutine to remove the race. This bug was discovered in #12098 but does not impact production Nomad code.
tgross
added a commit
that referenced
this issue
Apr 14, 2022
These tests have a data race where the test assertion is reading a value that's being set in the `listenFunc` goroutines that are subscribing to registry update events. Move the assertion into the subscribing goroutine to remove the race. This bug was discovered in #12098 but does not impact production Nomad code.
This was referenced Apr 20, 2022
lgfa29
pushed a commit
that referenced
this issue
Apr 20, 2022
The plugin manager for CSI hands out instances of a plugin for callers that need to mount a volume. The `MounterForPlugin` method accesses the internal instances map without a lock, and can be called concurrently from outside the plugin manager's main run-loop. The original commit for the instances map included a warning that it needed to be accessed only from the main loop but that comment was unfortunately ignored shortly thereafter, so this bug has existed in the code for a couple years without being detected until we ran tests with `-race` in #12098. Lesson learned here: comments make for lousy enforcement of invariants!
lgfa29
pushed a commit
that referenced
this issue
Apr 20, 2022
The plugin manager for CSI hands out instances of a plugin for callers that need to mount a volume. The `MounterForPlugin` method accesses the internal instances map without a lock, and can be called concurrently from outside the plugin manager's main run-loop. The original commit for the instances map included a warning that it needed to be accessed only from the main loop but that comment was unfortunately ignored shortly thereafter, so this bug has existed in the code for a couple years without being detected until we ran tests with `-race` in #12098. Lesson learned here: comments make for lousy enforcement of invariants!
New race in CaptureFiles
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/testing
Test related issues
type/bug
While messing around with running CI in GHA
tests-nomad
tests-client
The text was updated successfully, but these errors were encountered: