Skip to content

Conversation

@jbowens
Copy link
Collaborator

@jbowens jbowens commented Nov 17, 2025

Add a new debug endpoint that returns a text-formatted representation of all the stack traces that performed a retrieval of a separated value while the profile was being collected. This provides better observability into what code paths are suffering more expensive value retrievals.

Epic: none
Informs: #146575
Release note: none

Add a new debug endpoint that returns a text-formatted representation of all
the stack traces that performed a retrieval of a separated value while the
profile was being collected. This provides better observability into what code
paths are suffering more expensive value retrievals.

Epic: none
Informs: cockroachdb#146575
Release note: none
@blathers-crl
Copy link

blathers-crl bot commented Nov 17, 2025

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

@jbowens jbowens marked this pull request as ready for review November 17, 2025 16:54
@jbowens jbowens requested review from a team as code owners November 17, 2025 16:54
@jbowens jbowens requested review from RaduBerinde and jasonlmfong and removed request for a team November 17, 2025 16:54
Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jasonlmfong)

@jbowens
Copy link
Collaborator Author

jbowens commented Nov 17, 2025

TFTR!

bors r=RaduBerinde

@jbowens jbowens changed the title storage,sever: add debug separated value retrieval profile endpoint storage,server: add debug separated value retrieval profile endpoint Nov 17, 2025
craig bot pushed a commit that referenced this pull request Nov 17, 2025
157784: tree: speed up two tests r=yuzefovich a=yuzefovich

We just saw a package-level test timeout of 1 minute being hit because `TestRandomInjectHints` took 29s and `TestParseArrayRandomParseArray` took 16s before interruption. This commit reduces the number of iterations by 5x and 10x, respectively.

Fixes: #157256.
Release note: None

157852: mixedversion: remove special case for skipping current version r=williamchoe3 a=DarrylWong

In the past, we used to bump CRDB's minSupportedVersion _before_ bumping CRDB's current version.

Consider the old version bump process:
  1. Bump minimum supported version (e.g. 25.2→25.3)
  2. Bump current version (e.g. 25.4→26.1)
  3. Bump minimum supported version again (e.g. 25.3→25.4)

After the first step, we would be in a state where the mixed version framework would see v25.3 as a skippable version (.1 and .3 ordinal versions are skippable), but since the minimum supported version is 25.3, 25.2→25.4 is (temporarily) not a legal upgrade.

This required a special case to disallow skip upgrades in the case of this edge case. However, we now bump the current version _first_. This means we no longer need to protect against the above and we actually hit a different bug.

Since we now bump the current version first, the special case will always view the current version as having multiple supported predecessors and force a skip upgrade even if not applicable.

Release note: none
Epic: none

157919: roachprod: fix service registry unit test name collision r=golgeek a=DarrylWong

We were previously generating cluster names with Uint32, which is not sufficient enough to prevent naming collisions after 1000 iterations. Instead, use a RandString of length 10.

Fixes: #157884
Release note: none

157920: storage,server: add debug separated value retrieval profile endpoint r=RaduBerinde a=jbowens

Add a new debug endpoint that returns a text-formatted representation of all the stack traces that performed a retrieval of a separated value while the profile was being collected. This provides better observability into what code paths are suffering more expensive value retrievals.

Epic: none
Informs: #146575
Release note: none

Co-authored-by: Yahor Yuzefovich <[email protected]>
Co-authored-by: DarrylWong <[email protected]>
Co-authored-by: Jackson Owens <[email protected]>
@craig
Copy link
Contributor

craig bot commented Nov 17, 2025

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Nov 17, 2025

@craig craig bot merged commit b010ba8 into cockroachdb:master Nov 17, 2025
34 of 35 checks passed
@jbowens jbowens deleted the debug-separated-value-retrievals branch November 18, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants