-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
A-kv-transactionsRelating to MVCC and the transactional model.Relating to MVCC and the transactional model.A-multitenancyRelated to multi-tenancyRelated to multi-tenancyA-testingTesting tools and infrastructureTesting tools and infrastructureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.C-investigationFurther steps needed to qualify. C-label will change.Further steps needed to qualify. C-label will change.C-test-failureBroken test (automatically or manually discovered).Broken test (automatically or manually discovered).T-kvKV TeamKV Teambranch-masterFailures and bugs on the master branch.Failures and bugs on the master branch.target-release-26.1.0
Description
I've seen this test fail with external-process mode in CI.
In order to reproduce, cherry-pick #156504 (if it hasn't yet merged) and apply this patch
diff --git a/pkg/sql/txn_restart_test.go b/pkg/sql/txn_restart_test.go
index 61f3f5edee0..bad6051e672 100644
--- a/pkg/sql/txn_restart_test.go
+++ b/pkg/sql/txn_restart_test.go
@@ -1297,7 +1297,7 @@ func TestReacquireLeaseOnRestart(t *testing.T) {
params, _ := createTestServerParamsAllowTenants()
params.Knobs.Store = storeTestingKnobs
params.Knobs.KVClient = clientTestingKnobs
- params.DefaultTestTenant = base.TestDoesNotWorkWithExternalProcessMode(156333)
+ params.DefaultTestTenant = base.ExternalTestTenantAlwaysEnabled
srv, sqlDB, _ := serverutils.StartServer(t, params)
defer srv.Stopper().Stop(context.Background())
s = srv.ApplicationLayer()
It occasionally fails with
=== RUN TestReacquireLeaseOnRestart
test_log_scope.go:171: test logs captured to: /Users/yuzefovich/go/src/github.com/cockroachdb/cockroach/tmp/_tmp/a16775d7a628eb0b950c24e9004c9a4a/logTestReacquireLeaseOnRestart3826452634
test_log_scope.go:82: use -show-logs to present logs inline
txn_restart_test.go:1322: dial tcp 127.0.0.1:61343: connect: connection reset by peer
Jira issue: CRDB-55945
Metadata
Metadata
Assignees
Labels
A-kv-transactionsRelating to MVCC and the transactional model.Relating to MVCC and the transactional model.A-multitenancyRelated to multi-tenancyRelated to multi-tenancyA-testingTesting tools and infrastructureTesting tools and infrastructureC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.C-investigationFurther steps needed to qualify. C-label will change.Further steps needed to qualify. C-label will change.C-test-failureBroken test (automatically or manually discovered).Broken test (automatically or manually discovered).T-kvKV TeamKV Teambranch-masterFailures and bugs on the master branch.Failures and bugs on the master branch.target-release-26.1.0