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

wal: reduce flake in TestConcurrentWritersWithManyRecords #4177

Merged

Conversation

sumeerbhola
Copy link
Collaborator

Informs #4035

@sumeerbhola sumeerbhola requested a review from jbowens November 21, 2024 13:35
@sumeerbhola sumeerbhola requested a review from a team as a code owner November 21, 2024 13:35
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator Author

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jbowens)


wal/failover_writer_test.go line 668 at r1 (raw file):

			// switchToNewDir does not synchronously create the new writer, so wait
			// until the writer is created.
			<-logWriterCreated
  • Not using this channel was an oversight.
  • For some reason it still occasionally flakes.
  • I did add some instrumentation and verified that the failures are not actual bugs. It's simply that some writer has managed to make progress despite the expectation all should have their writes blocked. Which results in it popping from the recordQueue and later writers not seeing those records. That is, across the union of all writers, there is no missing data.

Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion

@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola sumeerbhola merged commit 9efb5b8 into cockroachdb:master Nov 25, 2024
23 checks passed
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.

3 participants