-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Do not await for responses when recovering pub filters (#2265)
The `recover_shape` and `refresh_publication` are in the `init` path of `ShapeCache`, and there is no reason why we would be waiting for responses. The `recover_shape` has no expected failure as it simply updates a map with appropriate counters. The `refresh_publication` will schedule a publication update, but we don't have to wait for it to finish to consider `ShapeCache` ready, as the shape consumers are already up and running and any new shapes will trigger another publication update after this one. These changes are based off of Sentry errors noticed from the cloud. I've also set the publication update debounce time to 0ms, so now it simply waits until end of current process message queue. This addresses an unnecessary delay in `prepare_table` calls (@robacourt), since even when there is no contention it would still debounce for 50ms. I think that simply reinserting the update at the end of the message queue should still handle things pretty well but we can see the benchmarks.
- Loading branch information
Showing
3 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@core/sync-service": patch | ||
--- | ||
|
||
- Do not await for responses while recovering publication filters. | ||
- Remove publication update debounce time - simply wait until end of current process message queue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters