Skip to content

Make status telemetry available in simulation and fix schema coverage - #13847

Draft
tclinkenbeard-oai wants to merge 8 commits into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/status-schema-reachable-probes
Draft

tclinkenbeard-oai wants to merge 8 commits into
apple:mainfrom
tclinkenbeard-oai:dev/tclinkenbeard/status-schema-reachable-probes

Conversation

@tclinkenbeard-oai

@tclinkenbeard-oai tclinkenbeard-oai commented Aug 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Correct the executable status schema and its public reference documentation by removing deleted blob roles and noncanonical storage-engine output aliases.
  • Accept the canonical memory-radixtree perpetual-wiggle engine while preserving legacy configuration-input aliases and supported process classes.
  • Publish deterministic simulated process, machine, and network telemetry after worker transport binding so simulation exercises the normal production status JSON formatter and retains full reachable schema coverage.
  • Correct JSON serialization of unset worker locality attributes so both process and machine status preserve their actual null values.
  • Preserve genuinely conditional status fields and omit only scalar map markers that cannot produce coverage events.
  • Add focused schema-validation regression coverage and registered status simulations that require complete process and machine telemetry for ssd-1 and memory-radixtree storage configurations while excluding only incompatible Attrition workloads.

Validation

  • git diff --check origin/main...HEAD
  • clang-format-19 --dry-run --Werror fdbclient/Schemas.cpp fdbclient/include/fdbclient/JsonBuilder.h fdbserver/SimulatedCluster.cpp fdbserver/clustercontroller/Status.cpp fdbserver/workloads/StatusWorkload.cpp
  • fdbserver_clustercontroller_test -f /status/json/builder
  • fdbserver -r unittests -f /fdbserver/status/schema/
  • fdbserver -r simulation -f tests/fast/StatusStorageEngine.toml -s 12648430 -b off -fi off
  • fdbserver -r simulation -f tests/fast/StatusPerpetualWiggleEngine.toml -s 12648430 -b off -fi off
  • fdbserver -r simulation -f tests/fast/StatusDuringOutage.toml -s 12648430 -b off -fi off
  • fdbserver -r simulation -f tests/fast/StatusStorageEngine.toml -s 12648430 -b on -fi on
  • fdbserver -r simulation -f tests/fast/StatusPerpetualWiggleEngine.toml -s 12648430 -b on -fi on

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@tclinkenbeard-oai tclinkenbeard-oai changed the title Remove unreachable status schema coverage requirements Make status telemetry available in simulation and fix schema coverage Aug 11, 2026
@tclinkenbeard-oai
tclinkenbeard-oai marked this pull request as ready for review August 11, 2026 23:09
@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@tclinkenbeard-oai
tclinkenbeard-oai marked this pull request as draft August 12, 2026 00:26
@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

Worker status stores locality names as flat JSON keys. Splitting a dotted key can omit matching storage workers from the capacity calculation. Skip absent and null labels explicitly, and preserve the error path for unexpected types.

@tclinkenbeard-oai tclinkenbeard-oai left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated by Codex.

What problem is this PR trying to solve? (ELI10)

A simulated database could pass its status test with a blank spot where a storage worker’s memory reading belonged. The simulator supplied no reading, and the test checked only the fields it received. The list of allowed answers had also drifted. For example, status reports memory-radixtree for the engine used to replace storage workers, but the old list expected the spelling memory-radixtree-beta. Monitor in simulation, old engine list

How does this PR solve the problem? (ELI10 and review walkthrough)

The simulator gives workers repeatable sample readings. The test then asks the database for its usual status report and follows a memory reading back to the worker and machine it describes.

  1. The simulator binds the worker’s address before recording the readings. This matters because the cache stores and retrieves each reading by address. The reported memory limit comes from the same value passed to the worker. Worker startup, event cache
  2. The controller collects those readings and calculates the worker’s available memory from the machine’s free memory and the workers’ limits. It caps the result at the worker’s own limit. Event collection, memory calculation
  3. The two engine simulations require a storage worker with a reading in that range and a matching machine in the same reply. After an incomplete reply, the final check can retry for a bounded period. Expiry without a complete sample fails the test. Storage role, memory and machine checks, retry and failure

What is it trying to do?

Exercise the production status formatter in simulation, align the schema and documentation with the names that formatter emits, and preserve unset worker labels as JSON null. Engine names, updated engine list, locality serialization test

Is it correct?

Yes. The coverage filter skips exactly the scalar map markers for which the matcher cannot record a hit. Object maps and their fields remain covered. Every reply still goes through schema validation before the retry can finish. Coverage filter, matcher, reply validation

Are there bugs?

I found none in the revised code. In particular, when a worker has both zoneid and zoneid.group, the exclusion check now looks up the whole label literally. It skips missing and null values, counts matching workers toward the capacity check, and preserves the error path for an unexpected value type. Matcher and regression, exclusion decision, capacity guard

Are there omissions?

I found no blocking gaps. The remaining risk is timing under injected faults. The workload requires one complete sample from a storage worker and its machine within the retry window. That gives the test a concrete success condition even when earlier replies are partial.

Are there better ways of doing things?

Supplying the sample readings at worker startup keeps the controller’s formatting and memory calculations in the test path. I’d keep that boundary.

Should this CL be LGTMd?

Yes, LGTM. I traced the telemetry, schema validation, and locality exclusion paths at the published head. This was a static review with no builds or tests run during the review. GitHub had reported no check results for this head at review time.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

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

  • Commit ID: 5fb7fb7
  • Duration 0:11:06
  • Result: ❌ FAILED
  • Error: Error while executing command: ninja -v -C build_output -j ${NPROC} all packages strip_targets. Reason: exit status 1
  • 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: 5fb7fb7
  • Duration 2:00:37
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • 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: 5fb7fb7
  • Duration 3:00:35
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • 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: 5fb7fb7
  • Duration 3:00:40
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • 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: 5fb7fb7
  • Duration 4:11:43
  • Result: ❌ FAILED
  • Error: Error while executing command: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ${HOME}/.ssh_key ec2-user@${MAC_EC2_HOST} /usr/local/bin/bash --login ./build_pr_macos.sh. Reason: exit status 1
  • 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-m1 on macOS

  • Commit ID: 5fb7fb7
  • Duration 4:13:27
  • Result: ❌ FAILED
  • Error: Error while executing command: ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ${HOME}/.ssh_key ec2-user@${MAC_EC2_HOST} /opt/homebrew/bin/bash --login ./build_pr_macos.sh. Reason: exit status 1
  • 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: 5fb7fb7
  • Duration 5:30:27
  • 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