Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvserver: better obs in TestTxnReadWithinUncertaintyIntervalAfterRangeMerge #143270

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tbg
Copy link
Member

@tbg tbg commented Mar 21, 2025

Closes #143260.

This is a complex test with a rare failure mode. Trace all of the relevant operations so that we can meaningfully engage with it.

Epic: none
Release note: none

@tbg tbg requested a review from a team as a code owner March 21, 2025 13:37
@cockroach-teamcity
Copy link
Member

This change is Reviewable

tbg added 3 commits March 21, 2025 14:39
…eMerge

This is a complex test with a rare failure mode. Trace all of the relevant operations so that we can meaningfully engage with it.

Epic: none
Release note: none
@tbg tbg force-pushed the TestTxnReadWithinUncertaintyIntervalAfterRangeMerge-143260 branch from d81ea55 to 03bf83c Compare March 21, 2025 13:39
@tbg tbg requested a review from stevendanna March 24, 2025 09:07
@@ -1545,6 +1545,18 @@ func (t Transaction) SafeFormat(w redact.SafePrinter, _ rune) {
}
w.Printf("meta={%s} lock=%t stat=%s rts=%s wto=%t gul=%s",
t.TxnMeta, t.IsLocking(), t.Status, t.ReadTimestamp, t.WriteTooOld, t.GlobalUncertaintyLimit)
for i, obs := range t.ObservedTimestamps {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm honestly surprised the test impact of this change isn't larger. It would be nice if SafeFormat also passed us the modifiers, because then we could do thinks like only do this for +v instead of just v. Anyway, that isn't for this PR.

For this PR, do you think it would make sense to truncate this if there was a very large number of nodes?

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.

kv/kvserver: TestTxnReadWithinUncertaintyIntervalAfterRangeMerge failed
3 participants