-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mononoke: make sure multiplexed blobstore write succeeds if all under…
…lying Summary: We had somewhat inconsistent behaviour in multiplexed blobstore: 1) If on_put handlers are too slow (i.e. they are slower than all blobstores) then we succeed as soon as all blobstores were successful (regardless of the value of minimum_successful_writes). It doesn't matter if on_put handlers fail or succeed, we've already returned success to our user. 2) However if all writes to the queue quickly fail, then we return a failure even if writes to all blobstore were successful. #2 seems like a change in behaviour from an old diff D17421208 (9de1de2), and not a desirable one - if blobstore sync queue is unavailable and it responds with failures quickly, then blobstore writes will always fail even if all blobstores are healthy. So this diff makes it so that we always succeed if all blobstore puts were successful, regardless of success or failures of on_put handlers. Reviewed By: liubov-dmitrieva Differential Revision: D29985084 fbshipit-source-id: 64338d552be45a70d9b1d16dfbe7d10346ab539c
- Loading branch information
1 parent
e2a7bc8
commit eb55bb4
Showing
2 changed files
with
76 additions
and
7 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