← Back to Pull requests

cls/lock: lock requests respond with expiration timestamp #73596

Open
unknown opened this pull request with 476 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 06, 2026 22:12 UTC
Author

allow clients to use the librados::OPERATION_RETURNVEC flag to request a cls_lock_lock_reply response that encodes the osd's expiration timestamp

use of this timestamp is subject to clock skew between the client and osd

motivated by an rgw design that uses these osd expiration timestamps to guard write operations on other rados objects using a new librados api assert_before(). the idea is that osd clocks are more likely to be synchronized than the rados clients

<details>
<summary>Show available Jenkins commands</summary>

  • jenkins test classic perf Jenkins Job | Jenkins Job Definition

  • jenkins test crimson perf Jenkins Job | Jenkins Job Definition

  • jenkins test signed Jenkins Job | Jenkins Job Definition

  • jenkins test make check Jenkins Job | Jenkins Job Definition

  • jenkins test make check arm64 Jenkins Job | Jenkins Job Definition

  • jenkins test submodules Jenkins Job | Jenkins Job Definition

  • jenkins test dashboard Jenkins Job | Jenkins Job Definition

  • jenkins test dashboard cephadm Jenkins Job | Jenkins Job Definition

  • jenkins test api Jenkins Job | Jenkins Job Definition

  • jenkins test docs ReadTheDocs | Github Workflow Definition

  • jenkins test ceph-volume all Jenkins Jobs | Jenkins Jobs Definition

  • jenkins test windows Jenkins Job | Jenkins Job Definition

  • jenkins test rook e2e Jenkins Job | Jenkins Job Definition
  • You must only issue one Jenkins command per-comment. Jenkins does not understand
    comments with more than one command.
    </details>

    Diff: 476 lines (+357 / -119) across 5 files Reviewer: batrick Review duration: 36098m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.46) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 476 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.369
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #73596"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.8% (MEDIUM) · Higher = larger blast radius
    45.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.4% · Safe to merge
    24.4%
    Repository