Skip to content

[#33475] DocDB: Count safe-time rejections and their deficit - #27

Open
Hasan-Al-Khazraji wants to merge 1 commit into
masterfrom
feature-stack/follower-read-observability/rejections
Open

Hasan-Al-Khazraji wants to merge 1 commit into
masterfrom
feature-stack/follower-read-observability/rejections

Conversation

@Hasan-Al-Khazraji

@Hasan-Al-Khazraji Hasan-Al-Khazraji commented Oct 14, 2026 •

Copy link
Copy Markdown

Summary

Retry totals cannot distinguish a follower refusing an unsafe read time
from other RPC failures. Record the rejection and its physical-time
shortfall at the existing fast-fail point, without changing read semantics.

The deficit uses native event stats (sum/count), not Prometheus buckets.
These metrics are tablet-level and are not returned in the failed query's
EXPLAIN response. Related proposal: yugabyte#33475.

Test plan

  • Source review and git diff --check completed for 92ec3ba.
  • Scoped lint passed with 0 errors and 14 PostgreSQL marker warnings.
  • Added PgMiniTest.FollowerReadRejectionMetrics to check rejection counting,
    safe-time deficit sampling, and an accepted read leaving both unchanged.
    The test has not been executed; compilation and runtime validation are pending.
  • The GitHub bld-db job never reached compilation: it timed out after
    24 hours waiting for a ybdbghr runner.

Ready for code review, not merge. A development build environment still needs
to be identified or set up so the focused test can run before merge.

Retry totals cannot distinguish a follower refusing an unsafe read time
from other RPC failures. Record the rejection and its physical-time
shortfall at the existing fast-fail point, without changing read semantics.

The deficit uses native event stats (sum/count), not Prometheus buckets.
These metrics are tablet-level and are not returned in the failed query's
EXPLAIN response. Related proposal: yugabyte#33475.

Test plan:
- Independent source review and git diff --check passed.
- Scoped lint passes with existing PostgreSQL marker warnings.
- Added PgMiniTest.FollowerReadRejectionMetrics; not executed because
  this checkout has no prepared C++ build. Validate before marking ready.

This branch was successfully deployed

No deployments
jenkins — 92ec3baf Deployed Oct 14, 2026 by Hasan-Al-Khazraji via bld-db #6
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.

1 participant