Skip to content
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

roachtest/tests: adjust sqlsmith slightly #68990

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions pkg/cmd/roachtest/tests/sqlsmith.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,17 @@ func registerSQLSmith(r registry.Registry) {
// other setup queries have already completed, including the smither
// instantiation (otherwise, the setup might fail because of the
// injected panics).
injectPanicsStmt := "SET testing_vectorize_inject_panics=true;"
if _, err := conn.Exec(injectPanicsStmt); err != nil {
t.Fatal(err)
if rng.Float64() < 0.5 {
// TODO(yuzefovich): at the moment we're only injecting panics with
// 50% probability in order to test the hypothesis that this panic
// injection is the root cause of the inbox communication errors we
// have been seeing sporadically.
injectPanicsStmt := "SET testing_vectorize_inject_panics=true;"
if _, err := conn.Exec(injectPanicsStmt); err != nil {
t.Fatal(err)
}
logStmt(injectPanicsStmt)
}
logStmt(injectPanicsStmt)

t.Status("smithing")
until := time.After(t.Spec().(*registry.TestSpec).Timeout / 2)
Expand Down