-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RequestBatcher: Improve Deadlock Safety with Dedicated Executor
This change enhances the RequestBatcher by introducing an internal executor specifically for critical queue draining operations. By isolating this functionality, clients are relieved from managing potential deadlocks associated with executor usage. Previously, sharing the FingerprintValueService's executor (used only for deserialization operations) introduced a theoretical risk, though likely benign due to its limited queuing on deserialization. PiperOrigin-RevId: 697999540 Change-Id: I8b00f6b5d22bc3d2a674226e8f30e673cd5e5307
- Loading branch information
1 parent
f54c853
commit 206907f
Showing
2 changed files
with
56 additions
and
17 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
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