roachtest: add split-file import test#167688
roachtest: add split-file import test#167688trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
|
😎 Merged successfully - details. |
d5025fd to
4503e40
Compare
mw5h
left a comment
There was a problem hiding this comment.
@mw5h reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on michae2).
pkg/cmd/roachtest/tests/import.go line 896 at r1 (raw file):
var first, second []string for i, url := range urls { if i%2 == 0 {
It might be better to put the URLs into a slice and shuffle with slices.Shuffle(), then pick some random number of them. That way you get a randomized ordering and a random number of files in each import.
pkg/cmd/roachtest/tests/import.go line 907 at r1 (raw file):
importStmt := formatImportStmt(ds.getTableName(), first, false) if _, err := conn.ExecContext(ctx, importStmt); err != nil { return errors.Wrap(err, "first import")
Does conn.ExecContext include the statement in its error message? I defensively put it in the error message for runSyncImportJob(), but maybe I didn't need to.
91611c2 to
ef32f11
Compare
michae2
left a comment
There was a problem hiding this comment.
@michae2 made 2 comments.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on mw5h).
pkg/cmd/roachtest/tests/import.go line 896 at r1 (raw file):
Previously, mw5h (Matt White) wrote…
It might be better to put the URLs into a slice and shuffle with slices.Shuffle(), then pick some random number of them. That way you get a randomized ordering and a random number of files in each import.
Good call, done.
pkg/cmd/roachtest/tests/import.go line 907 at r1 (raw file):
Previously, mw5h (Matt White) wrote…
Does conn.ExecContext include the statement in its error message? I defensively put it in the error message for runSyncImportJob(), but maybe I didn't need to.
Looks like it does not. Also added the statement to the error message.
mw5h
left a comment
There was a problem hiding this comment.
@mw5h reviewed 1 file and all commit messages, made 1 comment, and resolved 2 discussions.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on michae2).
ef32f11 to
437d32a
Compare
|
/trunk merge |
|
Detected infrastructure failure on trunk-merge branch (matched: self-hosted runner lost communication with the server). Automatically resubmitting to merge queue (attempt 1 of 2). (run link) |
|
/trunk merge |
|
This PR is already in the queue |
Add an import roachtest that splits a dataset's data files into two halves and imports them via two separate IMPORT jobs into the same table. This verifies that successive imports produce a correct, complete dataset. Epic: None Release note: None Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
437d32a to
9f848c0
Compare
|
/trunk merge |
Add an import roachtest that splits a dataset's data files into two halves and imports them via two separate IMPORT jobs into the same table. This verifies that successive imports produce a correct, complete dataset.
Epic: None
Release note: None