Skip to content

Lock access to mock Firestore Server reqs.#21742

Merged
mdwn merged 1 commit intomasterfrom
mike.wilson/lock-mock-firestore-batchwrite
Feb 13, 2023
Merged

Lock access to mock Firestore Server reqs.#21742
mdwn merged 1 commit intomasterfrom
mike.wilson/lock-mock-firestore-batchwrite

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Feb 13, 2023

The reqs member of the mock Firestore Server used in the TestDeleteDocuments test was occasionally causing a data race. Accesses to this field have now been wrapped in a lock.

Closes #21739

The reqs member of the mock Firestore Server used in the `TestDeleteDocuments`
test was occasionally causing a data race. Accesses to this field have now
been wrapped in a lock.
@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Feb 13, 2023

Noting that the flake was probably introduced in #21190. The plan right now is that we won't backport #21190, but if we do, this fix should go with it.

@zmb3 zmb3 requested a review from xacrimon February 13, 2023 19:02
@mdwn mdwn added this pull request to the merge queue Feb 13, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 13, 2023
@mdwn mdwn added this pull request to the merge queue Feb 13, 2023
Merged via the queue into master with commit 763410c Feb 13, 2023
@zmb3 zmb3 deleted the mike.wilson/lock-mock-firestore-batchwrite branch February 24, 2023 22:35
avatus pushed a commit that referenced this pull request Mar 3, 2023
The reqs member of the mock Firestore Server used in the `TestDeleteDocuments`
test was occasionally causing a data race. Accesses to this field have now
been wrapped in a lock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestDeleteDocuments flakiness

4 participants