cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

kvserver: lower slow latch request threshold to 2s for nodeliveness rng

Open angeladietz opened this issue 4 weeks ago • 9 comments

The default value of SlowLatchRequestThreshold is 5s, but since liveness heartbeats timeout after 3 seconds, its preferable to lower the threshold for the liveness range. This ensures that there will be logging/metrics for slow latch requests on this range before the request times out.

Fixes https://github.com/cockroachdb/cockroach/issues/154271 Release note: None Epic: None Part of: CRDB-54843

angeladietz avatar Dec 08 '25 19:12 angeladietz

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

blathers-crl[bot] avatar Dec 08 '25 19:12 blathers-crl[bot]

This change is Reviewable

cockroach-teamcity avatar Dec 08 '25 19:12 cockroach-teamcity

-- commits line 10 at r1:

Previously, arulajmani (Arul Ajmani) wrote…

Can we close this out with this patch, or is there more left?

I think we can close it, updated to "Fixes"

angeladietz avatar Dec 09 '25 19:12 angeladietz

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 09 '25 21:12 github-actions[bot]

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 09 '25 21:12 github-actions[bot]

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 09 '25 21:12 github-actions[bot]

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 09 '25 21:12 github-actions[bot]

the ai review thinks i need to use the mutex around Manager.slowLatchRequestThresholdOverride. It claims that ./dev test pkg/kv/kvserver/spanlatch --race will show the presence of this bug, but i ran that and it seemed fine. I'm inclined to think the mutex is unnecessary but curious to get a second opinion.

angeladietz avatar Dec 10 '25 14:12 angeladietz

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 10 '25 21:12 github-actions[bot]

Potential Bug(s) Detected

The three-stage Claude Code analysis has identified potential bug(s) in this PR that may warrant investigation.

Next Steps: Please review the detailed findings in the workflow run.

Note: When viewing the workflow output, scroll to the bottom to find the Final Analysis Summary.

After you review the findings, please tag the issue as follows:

  • If the detected issue is real or was helpful in any way, please tag the issue with O-AI-Review-Real-Issue-Found
  • If the detected issue was not helpful in any way, please tag the issue with O-AI-Review-Not-Helpful

github-actions[bot] avatar Dec 11 '25 20:12 github-actions[bot]

bors r+

angeladietz avatar Dec 11 '25 20:12 angeladietz

:-1: Rejected by code reviews

craig[bot] avatar Dec 11 '25 20:12 craig[bot]

bors r+

CI flake is TestAlterChangefeedAddTargetsDuringBackfill - already fixed afaict and unrelated to this PR.

tbg avatar Dec 12 '25 09:12 tbg