Repository navigation
Gate diagnostics behind the app master switch and mask trace output - #203
Merged
bedipritpal merged 4 commits intoNov 22, 2026
Merged
Conversation
…ce markers Port the application-controlled diagnostics design: OAdsSetLogging master default OFF with no env/INI enable, env/INI only select channels after the app opts in; server master from admin-owned config only. Mask table names, paths, aliases, usernames, SQL and raw error detail in every diagnostic sink (cli_trace, server wire trace, audit channel, error log, create diagnostics, startup failures). Add compact/full client wire trace columns, scoped ACE caller provenance, and local application markers (OAdsTraceMark/Ex, OAds_TraceMark). Include the gate-contract, marker and frame-hook tests. Server open-phase timing capture is NOT included.
OPENADS_LOCK_DIAG output now requires the application master and hides paths and raw error text; the byte-lock timeout print is likewise gated. Caught by the gate-contract canary matrix.
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.
Summary
OAdsSetLogging) now gates all client diagnostics: wire trace, ARC
trace, create-table/index diagnostics, CDX lock diagnostics,
error/audit logs and diagnostic stderr. Default OFF; no environment
variable or INI entry can enable it. Existing env/INI selectors behave
exactly as before once the application enables the master, and turning
the master off silences an already-installed wire hook.
in the server config file, default OFF when absent, never settable from
the environment. OPDUMP sampling cannot start while the master is off.
index expressions, SQL and raw error text; explicitly set aliases stay
readable.
mode, a caller column naming the synchronous ACE entry and dispatch
reason, and application trace markers (OAds_TraceMark, with optional
instance/thread IDs).
error returns, operational startup/shutdown messages and recovery
journals are unchanged.
Test plan
default/off/on/lifecycle/late), masking canaries, compact/full frame
parity, explicit-false selector handling, plus a separate-process
standalone-server boundary (default/off/admin-on with live requests;
env and client-INI enable attempts rejected; admin config honored).
existing diagnostics-surface unit tests opt into the master and assert
the masked contract.
repository flaky/slow exclusions, plus explicit contract reruns. Green.
Notes
this PR's CI provides.
(replication DELETE assertions, MT contention, exclusive-held
OpenIndex) also observed and reproduced on the base commit without
these changes; the replication cases pass in isolation