-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ttljob: paginate ranges when doing TTL #76726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,7 +329,11 @@ func TestRowLevelTTLJobRandomEntries(t *testing.T) { | |
}) | ||
defer cleanupFunc() | ||
|
||
rangeBatchSize := 1 + rng.Intn(3) | ||
t.Logf("range batch size: %d", rangeBatchSize) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. random thought - we should have one place to randomize + log all the TTL settings There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is more or less this above -- it's just this is the only one randomised by a cluster setting |
||
|
||
th.sqlDB.Exec(t, tc.createTable) | ||
th.sqlDB.Exec(t, `SET CLUSTER SETTING sql.ttl.range_batch_size = $1`, rangeBatchSize) | ||
|
||
// Extract the columns from CREATE TABLE. | ||
stmt, err := parser.ParseOne(tc.createTable) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the default is 100, should the test be closer to that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we used a smaller number here here because we have less ranges (maximum of ~8).