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

kv/kvserver: TestRaftRemoveRace failed #98652

Closed
Tracked by #98672
cockroach-teamcity opened this issue Mar 15, 2023 · 1 comment
Closed
Tracked by #98672

kv/kvserver: TestRaftRemoveRace failed #98652

cockroach-teamcity opened this issue Mar 15, 2023 · 1 comment
Assignees
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. T-kv KV Team
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Mar 15, 2023

kv/kvserver.TestRaftRemoveRace failed with artifacts on master @ 9b43dc50d468171bc9919dc684b7274b63e13da2:

=== RUN   TestRaftRemoveRace
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/d351c1750c446bc1442d58db9c0ceef9/logTestRaftRemoveRace4047806013
    test_log_scope.go:79: use -show-logs to present logs inline
    client_raft_test.go:2963: could not remove [n3,s3] replicas from range containing /Table/Max: AdminChangeReplicas error: cannot remove learner while snapshot is in flight
        (1) AdminChangeReplicas error: cannot remove learner while snapshot is in flight
          | -- cause hidden behind barrier
          | AdminChangeReplicas error: cannot remove learner while snapshot is in flight
          | (1) attached stack trace
          |   -- stack trace:
          |   | github.com/cockroachdb/cockroach/pkg/testutils/testcluster.(*TestCluster).changeReplicas
          |   | 	github.com/cockroachdb/cockroach/pkg/testutils/testcluster/testcluster.go:764
          |   | github.com/cockroachdb/cockroach/pkg/testutils/testcluster.(*TestCluster).RemoveVoters
          |   | 	github.com/cockroachdb/cockroach/pkg/testutils/testcluster/testcluster.go:920
          |   | github.com/cockroachdb/cockroach/pkg/testutils/testcluster.(*TestCluster).RemoveVotersOrFatal
          |   | 	github.com/cockroachdb/cockroach/pkg/testutils/testcluster/testcluster.go:928
          |   | github.com/cockroachdb/cockroach/pkg/kv/kvserver_test.TestRaftRemoveRace
          |   | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver_test/pkg/kv/kvserver/client_raft_test.go:2963
          |   | testing.tRunner
          |   | 	GOROOT/src/testing/testing.go:1446
          |   | runtime.goexit
          |   | 	GOROOT/src/runtime/asm_arm64.s:1172
          | Wraps: (2) AdminChangeReplicas error
          | Wraps: (3) forced error mark
          |   | "replication change in progress"
          |   | github.com/cockroachdb/errors/withstack/*withstack.withStack::
          | Wraps: (4)
          |   | (opaque error wrapper)
          |   | type name: github.com/cockroachdb/errors/withstack/*withstack.withStack
          |   | reportable 0:
          |   |
          |   | github.com/cockroachdb/cockroach/pkg/kv/kvserver.init
          |   | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_command.go:1309
          |   | runtime.doInit
          |   | 	GOROOT/src/runtime/proc.go:6348
          |   | runtime.doInit
          |   | 	GOROOT/src/runtime/proc.go:6325
          |   | runtime.main
          |   | 	GOROOT/src/runtime/proc.go:233
          |   | runtime.goexit
          |   | 	GOROOT/src/runtime/asm_arm64.s:1172
          | Wraps: (5) cannot remove learner while snapshot is in flight
          | Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *markers.withMark (4) *errbase.opaqueWrapper (5) *errutil.leafError
        Error types: (1) *barriers.barrierErr
    panic.go:522: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/d351c1750c446bc1442d58db9c0ceef9/logTestRaftRemoveRace4047806013
--- FAIL: TestRaftRemoveRace (6.15s)
Help

See also: How To Investigate a Go Test Failure (internal)

/cc @cockroachdb/replication

This test on roachdash | Improve this report!

Jira issue: CRDB-25417

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. labels Mar 15, 2023
@cockroach-teamcity cockroach-teamcity added this to the 23.1 milestone Mar 15, 2023
@tbg tbg added the T-kv KV Team label Jun 30, 2023
@erikgrinaker
Copy link
Contributor

Resolved by #99099.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. T-kv KV Team
Projects
None yet
Development

No branches or pull requests

3 participants