Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uproachtest: deflake acceptance/bank/zerosum-splits #31517
Conversation
benesch
requested review from
andreimatei and
m-schneider
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
benesch
referenced this pull request
Oct 16, 2018
Closed
teamcity: failed test: bank/zerosum-splits #31510
andreimatei
reviewed
Oct 16, 2018
LGTM
Reviewable status:
complete! 0 of 0 LGTMs obtained
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
bors r=andreimatei |
bot
pushed a commit
that referenced
this pull request
Oct 16, 2018
petermattis
approved these changes
Oct 16, 2018
Reviewable status:
complete! 0 of 0 LGTMs obtained
pkg/cmd/roachtest/bank.go, line 314 at r1 (raw file):
c.l.Printf("round %d: splitting key %v\n", curRound, key) _, err := client.db.Exec(fmt.Sprintf( `SET experimental_force_split_at = true; ALTER TABLE bank.accounts SPLIT AT VALUES (%d)`, key))
I think new versions of database/sql allow you to grab a conn to execute multiple statements on. This works too.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
craig
bot
commented
Oct 16, 2018
Build succeeded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
benesch commentedOct 16, 2018
This test requires that the experimental_force_split_at session var be
set to force ALTER ... SPLIT AT to work even with the merge queue
enabled. gosql.DB's connection pool will occasionally open a new
connection which does not have the var set. Set the session var in the
same batch of statements as the ALTER ... SPLIT AT command so that the
session var is always set in the session that executes the ALTER ...
SPLIT AT command.
Fix #31510.
Release note: None