Repository navigation
feat: enable local Sirius TPC-H benchmark - #27202
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Found one snapshot-safety blocker:
[P1] Do not accept a CN-local TN stanza as proof that the actual TN disabled GC
Config.verifySiriusBenchmarkNoGC currently uses benchmarkTNNoGC || c.getTNServiceConfig().GCCfg.DisableGC. The first term is launcher-owned proof, but the second is merely user-controlled TOML in the CN process. In the standalone mo-service -cfg <cn.toml> path, this process starts only the CN; it neither starts nor observes the remote TN. A CN file containing:
service-type = "CN"
[cn.sirius]
enabled = true
benchmark-no-gc = true
[tn.GCCfg]
disable-gc = truehas benchmarkTNNoGC == false, yet verifySiriusBenchmarkNoGC() returns nil. I reproduced this on the exact PR head with a focused startup test. The actual TN can still have GC enabled, while this admits the process-local lease manager and no-op protector; objects may then be collected while a Sirius read lease is live.
Please derive this proof only from a startup mode that owns/observes the exact TN lifecycle (for example the -launch manifest's parsed TN services, or a real runtime proof from TN/HAKeeper). A CN-only -cfg must fail closed instead of trusting a sibling [tn.GCCfg] section. The embedded path needs the same ownership guarantee. Please also update the documentation and add a negative test for this standalone bypass.
Validation on a977f9365b02658a93ef12b0d6f49224b16a6064: all changed-package tests passed; focused benchmark/startup/lifecycle tests passed under -race -count=20. The counterexample above fails because the current validation returns nil.
aptend
left a comment
There was a problem hiding this comment.
The benchmark admission still has a snapshot-safety blocker.
[P1] A CN-only process can self-assert that the remote TN disabled GC
Config.verifySiriusBenchmarkNoGC accepts c.benchmarkTNNoGC || c.getTNServiceConfig().GCCfg.DisableGC. Only the first value is launcher-owned proof. In the ordinary mo-service -cfg <cn.toml> path, the process starts a CN and does not own or observe the actual TN, but TOML decoding still accepts a sibling TN stanza:
service-type = "CN"
[cn.sirius]
enabled = true
benchmark-no-gc = true
[tn.GCCfg]
disable-gc = trueI reproduced this on the exact head: after decoding this config, benchmarkTNNoGC is false but cfg.verifySiriusBenchmarkNoGC() returns nil. The local lease manager/no-op protector is therefore admitted even if the actual TN continues GC, so objects can be reclaimed while Sirius holds a read lease. The documentation also explicitly instructs standalone CN users to rely on this unsafe sibling stanza.
Please accept the no-GC proof only from a startup mode that owns or observes the actual TN lifecycle. The -launch path's parsed TN configs can provide that proof; a CN-only -cfg must fail closed. Add a negative regression test for the configuration above and update the standalone documentation. Any embedded path must enforce the same ownership relationship rather than trusting unrelated user-configurable TN fields.
Validation on a977f9365b02658a93ef12b0d6f49224b16a6064: make thirdparties and make cgo passed. A focused counterexample test failed because validation returned nil, confirming the bypass.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep re-review of exact head 6387dd3.
The previous P1 manifest role-confusion blocker is closed. validateLaunchManifest parses and role-validates every static manifest list before any service starts, and each service-list starter independently fails closed as well. The launcher-owned no-GC proof now covers every TN that this static launch generation can start; standalone CN and embedded startup remain rejected without launcher proof.
I also re-audited the benchmark lease/protector, resolver identity binding, runtime publication/cleanup, configuration entry points, and failure paths. The process-local authority is explicit and bounded, normal Sirius still requires durable replayed leases, and I found no new blocking issue.
Fresh validation on this exact head: all tests passed for cmd/mo-service, pkg/cnservice, pkg/embed, pkg/sql/compile, and pkg/sql/plan/substrait; focused launcher/benchmark/resolver/runtime tests passed under -race -count=20; go vet and git diff --check passed.
Merge Queue Status
This pull request spent 1 hour 43 minutes 22 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonThe merge conditions cannot be satisfied due to failing checks Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. Requeued — the merge queue status continues in this comment ↓. |
…k' into feature/sirius-local-cn-benchmark
Merge Queue Status
This pull request spent 8 minutes 39 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonThe pull request can't be updated
Failing checks:
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Refs #26159
Parent issue: #26154
What this PR does / why we need it:
Enable the explicitly opt-in, one-to-one local CN/Sirius sidecar profile needed to run the remaining TPC-H end-to-end validation.
cn.sirius.benchmark-no-gcand fail closed unless the launcher observedtn.GCCfg.disable-gc=truein every TN configuration it actually started;This PR enables the benchmark runtime but does not close #26159: the live native-versus-Sirius Q1-Q22 differential and failure-injection run remains to be executed.
Test coverage
pkg/sql/plan/substrait,pkg/cnservice,pkg/sql/compile,cmd/mo-service, andpkg/embed;go vetfor all affected packages; and