-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: mls 1on1 race condition [WPB-15395] 🍒 #3239
Conversation
* fix: race condition during 1on1 mls creation, more logs * scope init fix * test fix * added ignore on welcome message when conv already exist, reverted wipe on member join * added warning
|
|
Branch | fix/mls-1on1-race-condition-cherry-pick |
Testbed | ubuntu-latest |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholds
CLI flag.
Click to view all benchmark results
Benchmark | Latency | microseconds (µs) |
---|---|---|
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInFiles | 📈 view plot | 692.34 |
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemory | 📈 view plot | 338,899.23 |
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmark | 📈 view plot | 1,335,882.24 |
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmark | 📈 view plot | 21,648.12 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3239 +/- ##
========================================
Coverage 54.43% 54.44%
========================================
Files 1271 1271
Lines 37062 37092 +30
Branches 3764 3766 +2
========================================
+ Hits 20176 20195 +19
- Misses 15466 15474 +8
- Partials 1420 1423 +3
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportBranch report: ✅ 0 Failed, 3300 Passed, 108 Skipped, 1m 2.02s Total Time |
This PR was automatically cherry-picked based on the following PR:
Original PR description:
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What’s New in This PR?
This PR addresses a race condition during 1:1 MLS conversation creation and improves logging throughout the MLS-related codebase.
Issues
ConversationAlreadyExists
Cannot execute operation because a pending commit exists
Causes
NotifyConversationIsOpenUseCase
), which also tries to resolve or establish a 1:1 MLS group.Solutions
Waiting for Slow Sync
NotifyConversationIsOpenUseCaseImpl
, we now explicitly wait forSlowSyncStatus
to reachComplete
before reevaluating the protocol for a 1:1 conversation.Improved Logging
kaliumLogger.d(...)
) inJoinExistingMLSConversationUseCase
,MLSConversationDataSource
, andNotifyConversationIsOpenUseCaseImpl
.Failure Handling (Wipe on Add Member Failure)
MLSConversationDataSource
, if adding members to an MLS group fails, we attempt a conversation wipe.