Skip to content

Bound Storefront order arrivals to the configured workload duration - #14744

Draft
tclinkenbeard-oai wants to merge 1 commit into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/storefront-scheduled-orders
Draft

tclinkenbeard-oai wants to merge 1 commit into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/storefront-scheduled-orders

Conversation

@tclinkenbeard-oai

Copy link
Copy Markdown
Collaborator

Storefront starts order writers and returns a timer for testDuration. The tester waits for all companion workloads before calling check(), 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 and RandomRangeLock completed 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

  • On Apple main at 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 caused OrderNotPresent with both binaries.
  • In a diagnostic simulation, a lock on /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 produced OrderContentsMismatch for that ID.
  • Replaying the original combination of changes with the 7.4.8 producer at seed 2757780544 and restart seed 2757780545 on the same dedicated host, the restart phase took 1,087 seconds before and 442 seconds after this change (810 vs. 197 CPU seconds). Both replays passed within the 1,800-second deadline. An instrumented repeat matched the clean candidate's unseed and verified all 15,880 acknowledged orders. The final range lock occurred after writing finished. These measurements describe one seed on the original integration branch. On Apple main the same restart seed followed a different schedule and completed zero orders with both binaries.
  • All eight workload unit tests, StorefrontTest, CloggedStorefront and three fresh seeds with a RandomRangeLock companion passed on the proposed commit.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS

  • Commit ID: 0018f7c
  • Duration 0:19:31
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: 0018f7c
  • Duration 0:29:02
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS

  • Commit ID: 0018f7c
  • Duration 0:39:53
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux RHEL 9

  • Commit ID: 0018f7c
  • Duration 0:49:34
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 0018f7c
  • Duration 0:54:37
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 0018f7c
  • Duration 0:57:07
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 0018f7c
  • Duration 1:41:35
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants