Skip to content

Conversation

@yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Nov 7, 2025

We just saw a timeout in tests where 15m limit was exceeded because more than 11m were consumed by TestTruncateLarge. In order to speed up the test, this commit reduces the number of tables affected as well as splits up two sub-tests into separate tests (hoping that they will end up in different shards).

Fixes: #156998.
Release note: None

@yuzefovich yuzefovich requested a review from fqazi November 7, 2025 19:28
@yuzefovich yuzefovich requested a review from a team as a code owner November 7, 2025 19:28
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

:lgtm:

@fqazi reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich yuzefovich force-pushed the speedup-truncate branch 2 times, most recently from f40e7d4 to 73e9aae Compare November 8, 2025 00:03
@yuzefovich
Copy link
Member Author

I've stressed the test on the gceworker, should be somewhat stable.

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Nov 8, 2025
157077: sql: remove gossip-based DistSQL physical planning r=yuzefovich a=yuzefovich

In 25.1 release we switched to using SQL-instance-based DistSQL physical planning but left gossip-based planning just in case (controlled via a cluster setting). We haven't seen any fallout from that, and given that many different workloads have been upgraded to 25.2, it seems safe to completely remove gossip-based planning now.

Epic: None
Release note: None

157079: sql: speed up recently added TestTruncateLarge r=yuzefovich a=yuzefovich

We just saw a timeout in tests where 15m limit was exceeded because more than 11m were consumed by TestTruncateLarge. In order to speed up the test, this commit reduces the number of tables affected as well as runs both subtests in parallel (which - hopefully - should be ok given that we skip this test under all heavy configs).

Fixes: #156998.
Release note: None

157086: go.mod: bump Pebble to f11535e4f8ec r=annrpom a=annrpom

Changes:

 * [`f11535e4`](cockroachdb/pebble@f11535e4) db: use Peek in TestVersionSetSeqNums
 * [`1ba71aa2`](cockroachdb/pebble@1ba71aa2) wal: consolidate LogRecycler.[Set]MinRecycleLogNum
 * [`82d592ec`](cockroachdb/pebble@82d592ec) db: document that multiple flushableEntries may share a logNum
 * [`9b012186`](cockroachdb/pebble@9b012186) db: add metric encapsulating blob file rewrite bytes read, written
 * [`b0c3d6c1`](cockroachdb/pebble@b0c3d6c1) db: disable writing to value blocks if `DisableSeparationBySuffix` is true
 * [`562c8d4d`](cockroachdb/pebble@562c8d4d) internal/manifest: document relationship between LastSeqNum and WAL seqnums
 * [`6d692923`](cockroachdb/pebble@6d692923) github: make sure the AI review bot picks up a PR with label added after creation

Release note: none.
Epic: none.

Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Co-authored-by: Annie Pompa <annie@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Nov 8, 2025

Build failed (retrying...):

@yuzefovich
Copy link
Member Author

bors r-

@craig
Copy link
Contributor

craig bot commented Nov 8, 2025

Canceled.

We just saw a timeout in tests where 15m limit was exceeded because more
than 11m were consumed by TestTruncateLarge. In order to speed up the
test, this commit reduces the number of tables affected as well as
splits up two sub-tests into separate tests (hoping that they will end
up in different shards).

Release note: None
Copy link
Member Author

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

I gave up trying to make leaktest linter happy so simply separated out two sub-tests into top-level tests.

bors r+

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

@craig
Copy link
Contributor

craig bot commented Nov 8, 2025

@craig craig bot merged commit ddeef36 into cockroachdb:master Nov 8, 2025
23 of 24 checks passed
@yuzefovich yuzefovich deleted the speedup-truncate branch November 8, 2025 04:05
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.

sql: timeout because of TestTruncateLarge

3 participants