Repository navigation
Bound Storefront order arrivals to the configured workload duration - #14744
Draft
tclinkenbeard-oai wants to merge 1 commit into
Draft
tclinkenbeard-oai wants to merge 1 commit into
tclinkenbeard-oai wants to merge 1 commit into
Conversation
Contributor
Result of foundationdb-pr-macos-m1 on macOS
|
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Storefront starts order writers and returns a timer for
testDuration. The tester waits for all companion workloads before callingcheck(), which stops the writers and verifies the orders. A slow companion can therefore extend order generation by hundreds of simulated seconds. One restart with a ten-second Storefront andRandomRangeLockcompleted 393,291 orders on replay, against an expected 16,000 across eight testers.Stop each writer when its next scheduled Poisson arrival falls outside the configured window. Using the scheduled arrival time lets orders delayed by recovery catch up while a companion is still running. The existing check barrier stops outstanding writers and verifies the contents of acknowledged orders. This limits how much traffic overlaps faults injected late in the companion.
Validation
25d8e2c080fd, extending a Mako companion from 3 to 18 seconds increased Storefront's total from 663 to 2,453 orders with its own duration fixed at 3 seconds. With this change the totals were 506 and 507, close to the configured mean of 480. Clearing the order keys after the writes causedOrderNotPresentwith both binaries./orders/spanned the entire five-second arrival window. All 16 writers encountered lock rejections. After release, the candidate acknowledged and verified 233 orders, against a configured mean of 240. Cancelling at the timer verified zero, and checking the current time before each new order verified 16. Corrupting an acknowledged value producedOrderContentsMismatchfor that ID.StorefrontTest,CloggedStorefrontand three fresh seeds with aRandomRangeLockcompanion passed on the proposed commit.