Skip to content

Conversation

RaduBerinde
Copy link
Member

Changes:

  • 0ac45a74 metrics: fix TestMetrics flake
  • 98c989b1 metamorphic: fix bug in suffix generation when prefix == startPrefix
  • d37d2f4b pebble: materialize virtual tables only if backing contains >= 30% garbage

Release note: none.
Epic: none.

Changes:

 * [`0ac45a74`](cockroachdb/pebble@0ac45a74) metrics: fix TestMetrics flake
 * [`98c989b1`](cockroachdb/pebble@98c989b1) metamorphic: fix bug in suffix generation when prefix == startPrefix
 * [`d37d2f4b`](cockroachdb/pebble@d37d2f4b) pebble: materialize virtual tables only if backing contains >= 30% garbage

Release note: none.
Epic: none.
@RaduBerinde RaduBerinde requested review from a team and annrpom October 3, 2025 14:12
@RaduBerinde RaduBerinde requested a review from a team as a code owner October 3, 2025 14:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@RaduBerinde
Copy link
Member Author

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Oct 6, 2025
154541: unsafesql: avoid panicking during query formatting r=angles-n-daemons a=angles-n-daemons

Part of the effort to guard access to the crdb_internal and system namespaces includes auditing override access (and denied access) to these unsafe internals. Included in this audit is the offending query which attempted to pry into these namespaces.

In multiple locations however, this auditing caused the system to panic, for different reasons. In one case, an incorrect number of annotations on the query caused a panic. Another included a plan builder which had no associated statement.

We see the process of going from plan -> query as a difficult one, and thus guard this attempt to audit these accesses in a blanket panic catcher, as it's not common that this will happen, and when it does we don't want the system to wholesale fail the query.

Fixes: #153590 Epic: CRDB-24527

Release note: none

154740: go.mod: bump Pebble to 0ac45a74e10a r=RaduBerinde a=RaduBerinde

Changes:

 * [`0ac45a74`](cockroachdb/pebble@0ac45a74) metrics: fix TestMetrics flake
 * [`98c989b1`](cockroachdb/pebble@98c989b1) metamorphic: fix bug in suffix generation when prefix == startPrefix
 * [`d37d2f4b`](cockroachdb/pebble@d37d2f4b) pebble: materialize virtual tables only if backing contains >= 30% garbage

Release note: none.
Epic: none.

Co-authored-by: Brian Dillmann <[email protected]>
Co-authored-by: Radu Berinde <[email protected]>
@craig
Copy link
Contributor

craig bot commented Oct 6, 2025

This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried.

craig bot pushed a commit that referenced this pull request Oct 6, 2025
154541: unsafesql: avoid panicking during query formatting r=angles-n-daemons a=angles-n-daemons

Part of the effort to guard access to the crdb_internal and system namespaces includes auditing override access (and denied access) to these unsafe internals. Included in this audit is the offending query which attempted to pry into these namespaces.

In multiple locations however, this auditing caused the system to panic, for different reasons. In one case, an incorrect number of annotations on the query caused a panic. Another included a plan builder which had no associated statement.

We see the process of going from plan -> query as a difficult one, and thus guard this attempt to audit these accesses in a blanket panic catcher, as it's not common that this will happen, and when it does we don't want the system to wholesale fail the query.

Fixes: #153590 Epic: CRDB-24527

Release note: none

154740: go.mod: bump Pebble to 0ac45a74e10a r=RaduBerinde a=RaduBerinde

Changes:

 * [`0ac45a74`](cockroachdb/pebble@0ac45a74) metrics: fix TestMetrics flake
 * [`98c989b1`](cockroachdb/pebble@98c989b1) metamorphic: fix bug in suffix generation when prefix == startPrefix
 * [`d37d2f4b`](cockroachdb/pebble@d37d2f4b) pebble: materialize virtual tables only if backing contains >= 30% garbage

Release note: none.
Epic: none.

154867: go.mod: bump datadriven r=RaduBerinde a=RaduBerinde

Bump datadriven to incorporate a fix
(cockroachdb/datadriven#60).

Epic: none
Release note: None

Co-authored-by: Brian Dillmann <[email protected]>
Co-authored-by: Radu Berinde <[email protected]>
@craig
Copy link
Contributor

craig bot commented Oct 6, 2025

Build failed (retrying...):

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.

3 participants