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

Create subconversations on first commit #3355

Merged
merged 3 commits into from
Jun 16, 2023

Conversation

pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented Jun 15, 2023

This PR changes the way subconversations are created to be consistent with the approach used for MLS 1-1 conversations. Namely, instead of the GET endpoint creating the conversation when it doesn't exist, creation happens within the commit lock of the first commit.

This also fixes a latent race condition where one thread could "create" an existing conversation which had already progressed to epoch 1, thereby resetting its epoch to 0 and breaking it.

https://wearezeta.atlassian.net/browse/WPB-1927

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@pcapriotti pcapriotti force-pushed the pcapriotti/mls-subconv-creation branch from d9523b6 to 4a842c3 Compare June 16, 2023 09:30
@pcapriotti pcapriotti force-pushed the pcapriotti/mls-subconv-creation branch from 8999b8b to 98e8559 Compare June 16, 2023 10:09
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 16, 2023
@pcapriotti pcapriotti marked this pull request as ready for review June 16, 2023 10:13
@smatting smatting self-requested a review June 16, 2023 12:56
@pcapriotti pcapriotti merged commit 8783930 into mls Jun 16, 2023
@pcapriotti pcapriotti deleted the pcapriotti/mls-subconv-creation branch June 16, 2023 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants