fix: queue one-on-one recovery retries for foreground processing [WPB-24176]#4001
fix: queue one-on-one recovery retries for foreground processing [WPB-24176]#4001
Conversation
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #4001 +/- ##
===========================================
- Coverage 59.60% 59.55% -0.05%
===========================================
Files 2025 2027 +2
Lines 65472 65538 +66
Branches 7140 7149 +9
===========================================
+ Hits 39026 39033 +7
- Misses 23254 23312 +58
- Partials 3192 3193 +1
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| internal class InMemoryPendingOneOnOneResolutionsRepository : PendingOneOnOneResolutionsRepository { | ||
| private val mutex = Mutex() | ||
| private val pendingUserIds = linkedSetOf<UserId>() | ||
|
|
||
| override suspend fun enqueue(userId: UserId) { | ||
| mutex.withLock { | ||
| pendingUserIds.add(userId) | ||
| } | ||
| } | ||
|
|
||
| override suspend fun dequeueAll(): Set<UserId> = mutex.withLock { | ||
| pendingUserIds.toSet().also { pendingUserIds.clear() } | ||
| } | ||
| } |
There was a problem hiding this comment.
this means the resolving will be lost to the void in case of process death is it needed to be in memory or we can persist the q in the DB for example?
| kaliumLogger.e("Resolving one-on-one failed $failure, skipping") | ||
| Either.Right(Unit) | ||
| } else { | ||
| kaliumLogger.e("Resolving one-on-one failed $failure, retrying") |
There was a problem hiding this comment.
Is this retry on purpose?



https://wearezeta.atlassian.net/browse/WPB-24176
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
Causes (Optional)
Solutions
MissingKeyPackagesFederatedBackendFailure.RetryableFailureMLSFailure.MessageRejected(StaleMessage)