Skip to content

Conversation

@nicktrav
Copy link
Collaborator

Currently, debugging a BatchTimestampBeforeGCError is difficult, as there information is lacking as to replica / range tried to touch underneath the GC threshold.

Add the range ID and span to the error message.

Fixes #131256.

Release note: None.

@blathers-crl
Copy link

blathers-crl bot commented Sep 27, 2024

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?

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

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Remove regular expressions, where simple string comparisons will
suffice.

Release note: None.
@nicktrav nicktrav marked this pull request as ready for review September 30, 2024 13:53
@nicktrav nicktrav requested review from a team as code owners September 30, 2024 13:53
@nicktrav nicktrav requested review from andyyang890 and arulajmani and removed request for a team September 30, 2024 13:53
Copy link
Collaborator

@andyyang890 andyyang890 left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

Copy link
Collaborator

@andyyang890 andyyang890 left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @nicktrav)


-- commits line 10 at r2:
nit: s/kvp/kvpb/

Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

This would have been super helpful in a number of places.

Currently, debugging a `BatchTimestampBeforeGCError` is difficult, as
there information is lacking as to replica / range tried to touch
underneath the GC threshold.

Add the range ID and span to the error message.

Fixes cockroachdb#131256.

Release note: None.
@nicktrav
Copy link
Collaborator Author

nicktrav commented Oct 1, 2024

TFTRs!

bors r+

@craig craig bot merged commit 7433331 into cockroachdb:master Oct 1, 2024
@andyyang890 andyyang890 changed the title kvp,kvserver: add range id, span to BatchTimestampBeforeGCError kvpb,kvserver: add range id, span to BatchTimestampBeforeGCError Oct 1, 2024
@arulajmani
Copy link
Collaborator

blathers backport 24.2 24.1 23.2

@blathers-crl
Copy link

blathers-crl bot commented Nov 4, 2024

Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches.


Issue #131256: branch-release-23.2, branch-release-24.1, branch-release-24.2.


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

@blathers-crl
Copy link

blathers-crl bot commented Nov 4, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 96b93e8 to blathers/backport-release-23.2-131545: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.2 failed. See errors above.


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

nicktrav added a commit to nicktrav/cockroach that referenced this pull request Sep 2, 2025
Fix a testing bug introduced in cockroachdb#131545 where the `Contains` check
arguments were reversed. The error string to being searched should
precede the string being searched for. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
nicktrav added a commit to nicktrav/cockroach that referenced this pull request Sep 2, 2025
Fix a testing bug introduced in cockroachdb#131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
craig bot pushed a commit that referenced this pull request Sep 8, 2025
152880: changefeedccl: fix reversed args for containment check in test logic r=nicktrav a=nicktrav

Fix a testing bug introduced in #131545 where the `Contains` check arguments were reversed. The error string being _searched_ should precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None

Epic: None

Co-authored-by: Nick Travers <[email protected]>
blathers-crl bot pushed a commit that referenced this pull request Sep 8, 2025
Fix a testing bug introduced in #131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
blathers-crl bot pushed a commit that referenced this pull request Sep 8, 2025
Fix a testing bug introduced in #131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
blathers-crl bot pushed a commit that referenced this pull request Sep 8, 2025
Fix a testing bug introduced in #131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
blathers-crl bot pushed a commit that referenced this pull request Sep 8, 2025
Fix a testing bug introduced in #131545 where the `Contains` check
arguments were reversed. The error string being _searched_ should
precede the string being _searched for_. The examples from the API docs:

```
//	require.Contains(t, "Hello World", "World")
//	require.Contains(t, ["Hello", "World"], "World")
//	require.Contains(t, {"Hello": "World"}, "Hello")
```

Release note: None
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: add start/end key to kvpb.BatchTimestampBeforeGCError

5 participants