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

pkg/ccl/serverccl/statusccl/statusccl_test: TestTenantStatusAPI failed #92979

Closed
cockroach-teamcity opened this issue Dec 3, 2022 · 43 comments · Fixed by #99054
Closed

pkg/ccl/serverccl/statusccl/statusccl_test: TestTenantStatusAPI failed #92979

cockroach-teamcity opened this issue Dec 3, 2022 · 43 comments · Fixed by #99054
Assignees
Labels
A-observability-inf branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. skipped-test
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Dec 3, 2022

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ ca079ac1fc8a8f7a5360f5b1f4fa210c14dc8410:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1411717807
    test_log_scope.go:79: use -show-logs to present logs inline
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:117: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1411717807
--- FAIL: TestTenantStatusAPI (5.47s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.03s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1215: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2826/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1215
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.01s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

/cc @cockroachdb/sql-observability @cockroachdb/multi-tenant

This test on roachdash | Improve this report!

Jira issue: CRDB-22078

@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 Dec 3, 2022
@cockroach-teamcity cockroach-teamcity added this to the 23.1 milestone Dec 3, 2022
@dhartunian dhartunian self-assigned this Dec 5, 2022
@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 93ed65565357538c9048ff45c878a493f2ed9b45:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI378325650
    test_log_scope.go:79: use -show-logs to present logs inline
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:135: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI378325650
--- FAIL: TestTenantStatusAPI (4.24s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.17s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1233: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2801/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1233
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 94e03c016955dfd64d4e15358ea92226a8f362aa:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4245218489
    test_log_scope.go:79: use -show-logs to present logs inline
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:135: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4245218489
--- FAIL: TestTenantStatusAPI (5.28s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.02s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1233: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2406/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1233
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 642afd6e8c8d1f967da4aa0c3c08e2bdc0495100:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3962141324
    test_log_scope.go:79: use -show-logs to present logs inline
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:135: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3962141324
--- FAIL: TestTenantStatusAPI (4.27s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.00s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1233: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2500/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1233
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ b6434c942b4811c088349c43a81a46a53fb9b6c0:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI320468523
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:143: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI320468523
--- FAIL: TestTenantStatusAPI (10.56s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.35s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1249: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/3364/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1249
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 6eabc2f348710f4146ff984bc346cd8cbe96f83b:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4136927739
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:143: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4136927739
--- FAIL: TestTenantStatusAPI (10.26s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.57s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1249: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2891/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1249
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 5fbcd8a8deac0205c7df38e340c1eb9692854383:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1216025310
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:144: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1216025310
--- FAIL: TestTenantStatusAPI (10.65s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.35s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1225: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1626/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1225
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@exalate-issue-sync exalate-issue-sync bot assigned abarganier and unassigned dhartunian Feb 6, 2023
@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 64a867acd25c0a214209957eefb6483d1158b4f0:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4153507494
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:149: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4153507494
--- FAIL: TestTenantStatusAPI (18.18s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.16s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:211: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1612/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:211
        	Error:      	Not equal: 
        	            	expected: 45
        	            	actual  : 46
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.16s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 64a867acd25c0a214209957eefb6483d1158b4f0:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI218717896
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:149: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI218717896
--- FAIL: TestTenantStatusAPI (10.66s)
=== RUN   TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
    tenant_status_test.go:1295: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2210/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1295
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 0
        	Test:       	TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination
        --- FAIL: TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination (0.00s)
=== RUN   TestTenantStatusAPI/tenant_ranges
    --- FAIL: TestTenantStatusAPI/tenant_ranges (0.18s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@dhartunian
Copy link
Collaborator

Attempted to repro the pagination test locally and could not 834 runs so far, 0 failures, over 3m45s

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ a0ab818e89508ca0b65926a4faac4c563d114acf:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/7067ad80d000d85ce2eeee021e911c58/logTestTenantStatusAPI285013507
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:149: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/7067ad80d000d85ce2eeee021e911c58/logTestTenantStatusAPI285013507
--- FAIL: TestTenantStatusAPI (10.86s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.04s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:211: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/7625/execroot/com_github_cockroachdb_cockroach/bazel-out/aarch64-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:211
        	Error:      	Not equal: 
        	            	expected: 46
        	            	actual  : 48
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.04s)
Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ af3bf237ce3774258a13a0c2aa0e2da22716270f:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3909493003
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:149: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3909493003
--- FAIL: TestTenantStatusAPI (10.37s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.02s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:211: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2610/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:211
        	Error:      	Not equal: 
        	            	expected: 48
        	            	actual  : 49
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.02s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ af3bf237ce3774258a13a0c2aa0e2da22716270f:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI2297664063
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:149: -- test log scope end --
--- FAIL: TestTenantStatusAPI (18.91s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.17s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:211: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1792/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:211
        	Error:      	Not equal: 
        	            	expected: 45
        	            	actual  : 46
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI2297664063
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.17s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 7e2df35a2f6bf7a859bb0539c8ca43c4e72ed260:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4000609239
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4000609239
--- FAIL: TestTenantStatusAPI (21.99s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.19s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/3213/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 706
        	            	actual  : 705
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.19s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ c95bef097bd4c213c6b5c0c125a9a846c4479d73:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI293104222
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI293104222
--- FAIL: TestTenantStatusAPI (31.25s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.48s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2832/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 702
        	            	actual  : 720
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.48s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 5b2a5670cbbe895d76602c230390816e783e0caa:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI610391313
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI610391313
--- FAIL: TestTenantStatusAPI (30.93s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.51s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/4439/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 710
        	            	actual  : 728
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.51s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 95684388bfbb372ac8c7e1a8ebd4a0d6f447e147:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1983542420
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1983542420
--- FAIL: TestTenantStatusAPI (35.79s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.66s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/2852/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 728
        	            	actual  : 722
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.66s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ e4924e2b9be4a36d466beab53a80df9241df4783:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4233483267
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI4233483267
--- FAIL: TestTenantStatusAPI (31.31s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.52s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1455/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 701
        	            	actual  : 719
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.52s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 43f7cde6f036f720388912bde7310095c2f8ca9e:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI2655711184
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI2655711184
--- FAIL: TestTenantStatusAPI (41.49s)
=== RUN   TestTenantStatusAPI/txn_id_resolution
=== CONT  TestTenantStatusAPI/txn_id_resolution
    tenant_status_test.go:1245: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1245
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/soon.go:71
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/retry.go:213
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/soon.go:77
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/soon.go:59
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/soon.go:41
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1232
        	            				/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/1706/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:1263
        	Error:      	Should not be: 0x0
        	Test:       	TestTenantStatusAPI/txn_id_resolution
    --- FAIL: TestTenantStatusAPI/txn_id_resolution (0.07s)
=== RUN   TestTenantStatusAPI/txn_id_resolution/tenant_cluster
=== CONT  TestTenantStatusAPI/txn_id_resolution/tenant_cluster
    testing.go:1343: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
        --- FAIL: TestTenantStatusAPI/txn_id_resolution/tenant_cluster (0.03s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ ca5ae38022c45aec434fa1dd98f58c76e37643f5:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/7067ad80d000d85ce2eeee021e911c58/logTestTenantStatusAPI276233972
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:159: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/7067ad80d000d85ce2eeee021e911c58/logTestTenantStatusAPI276233972
--- FAIL: TestTenantStatusAPI (11.10s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.03s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:222: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/7577/execroot/com_github_cockroachdb_cockroach/bazel-out/aarch64-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:222
        	Error:      	Not equal: 
        	            	expected: 787
        	            	actual  : 786
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.03s)
Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 9b43dc50d468171bc9919dc684b7274b63e13da2:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI2258820115
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:141: -- test log scope end --
--- FAIL: TestTenantStatusAPI (38.53s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.94s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:204: 
        	Error Trace:	/home/roach/.cache/bazel/_bazel_roach/c5a4e7d36696d9cd970af2045211a7df/sandbox/processwrapper-sandbox/3421/execroot/com_github_cockroachdb_cockroach/bazel-out/k8-fastbuild/bin/pkg/ccl/serverccl/statusccl/statusccl_test_/statusccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/serverccl/statusccl/tenant_status_test.go:204
        	Error:      	Not equal: 
        	            	expected: 803
        	            	actual  : 800
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.93s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@abarganier
Copy link
Contributor

I've been looking more into the TestTenantStatusAPI/tenant_ranges/test_tenant_ranges_pagination flakes.

This specific tests runs the following procedure:

  1. Make a TenantRanges request, with a limit of 1 so we only get a single range back.
  2. The response is expected to return a next offset value, equal to 1. This assertion has never failed it seems.
  3. We then take that offset, and make another TenantRanges request using said offset. Note that we also set the limit to 1.
  4. The response is expected to return the next range, with a next offset value equal to 2. This is the assertion that fails - the next value is instead 0.

What does it mean for this assertion to fail, which is to ask, what does it mean when a next value of 0 is returned?

This means that there are no more ranges for TenantRanges to process. Returning a next value of 0 signifies that there are no ranges past the last one read. Note that the ranges returned by this endpoint are in sorted order.

The test definitely appears to be failing due to a race condition. When creating the test, we initialize the tenant, which somehow triggers the creation of ranges for the tenant. It seems that these ranges are, in rare instances, not initialized in the way we'd expect, which is what's causing this assertion to fail - we expect a certain number of ranges to exist, and they don't.

I am going to look into some options to protect against this case. Can we maybe use require.Eventually to protect against this? Are there some ways we can ensure that the ranges are created prior to running the test? I'm going to explore these types of options.

@knz
Copy link
Contributor

knz commented Mar 15, 2023

Thanks for the investigation.
I believe that @arulajmani and @ecwall have discovered that the span config reconciliation for tenants is asynchronous and can happen after the first clients connect. Arul, Evan, is my understanding correct?

Was there a way to wait until the ranges are ready?

@arulajmani
Copy link
Collaborator

I believe that @arulajmani and @ecwall have discovered that the span config reconciliation for tenants is asynchronous and can happen after the first clients connect. Arul, Evan, is my understanding correct?

You're right, SpanConfig reconciliation is asynchronous for tenants. However, when we create a tenant, we synchronously write a SpanConfig record for it -- one that covers its entire range.

The splitting of this range is asynchronous though. If there's a race condition, maybe that's the reason for it? That is, the split queue may not have come around to do its thing.

@abarganier
Copy link
Contributor

@arulajmani thanks for the context, this is helpful.

I don't believe we do anything special here when we create the tenants. You mention that the splitting of the range is async. Is it a normal procedure for a newly started tenant to split this range? I am not familiar with this level of details when it comes to creating & starting a new tenant, but if the range split is part of the process, that sounds like it could be the culprit.

(I was looking to see if we have any testing knobs around this, but it doesn't seem like it)

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 53dbb86acb1d48309530181b94838faf937084d3:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1655917537
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:141: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI1655917537
--- FAIL: TestTenantStatusAPI (10.89s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:204: 
        	Error Trace:	pkg/ccl/serverccl/statusccl/statusccl_test/pkg/ccl/serverccl/statusccl/tenant_status_test.go:204
        	Error:      	Not equal: 
        	            	expected: 806
        	            	actual  : 805
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.06s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.06s)

Parameters: TAGS=bazel,gss

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ 9acc75317aebfdfe69fb097a8a28e0040c7a67fd:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3215470422
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:141: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3215470422
--- FAIL: TestTenantStatusAPI (48.40s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:204: 
        	Error Trace:	pkg/ccl/serverccl/statusccl/statusccl_test/pkg/ccl/serverccl/statusccl/tenant_status_test.go:204
        	Error:      	Not equal: 
        	            	expected: 826
        	            	actual  : 825
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.22s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.22s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

@arulajmani
Copy link
Collaborator

I don't believe we do anything special here when we create the tenants. You mention that the splitting of the range is async. Is it a normal procedure for a newly started tenant to split this range? I am not familiar with this level of details when it comes to creating & starting a new tenant, but if the range split is part of the process, that sounds like it could be the culprit.

Yeah, we expect a newly created tenant to split its range off.

@knz
Copy link
Contributor

knz commented Mar 20, 2023

Yeah, we expect a newly created tenant to split its range off.

And when is this expected to happen? I see in createTenantInternal the calls to AdminSplit. Does the split is guaranteed to be completed by the time the AdminSplit call ends?

@abarganier
Copy link
Contributor

abarganier commented Mar 20, 2023

#99048 requests a documentation update to outline the point-in-time nature of this endpoint. The endpoint here performed as expected. The problem lies in the test itself making some incorrect assumptions about the tenant create process being deterministic w.r.t. time when it comes to the number of ranges present once the tenant is ready.

#99054 will deal with the flakes by waiting for the split queue to process sufficiently so that enough ranges exist for the test to pass.

Given this, I'm going to remove the GA-blocker label as the endpoint performs as expected, we're elaborating this behavior in docs, and the client has a workaround (make the request again).

@dhartunian dhartunian removed the branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 label Mar 20, 2023
@cockroach-teamcity
Copy link
Member Author

pkg/ccl/serverccl/statusccl/statusccl_test.TestTenantStatusAPI failed with artifacts on master @ b89fa2cc4bc1fb9447ab1009b34b6f354f9618f0:

=== RUN   TestTenantStatusAPI
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3686556355
=== CONT  TestTenantStatusAPI
    tenant_status_test.go:141: -- test log scope end --
CREATE UNIQUE INDEX test_pkey ON test_db1.public.test USING btree (k ASC)test logs left over in: /artifacts/tmp/_tmp/8bc2de686563d04c3522b0df244fc129/logTestTenantStatusAPI3686556355
--- FAIL: TestTenantStatusAPI (50.81s)
=== RUN   TestTenantStatusAPI/tenant_span_stats
    --- FAIL: TestTenantStatusAPI/tenant_span_stats (0.30s)
=== RUN   TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
    tenant_status_test.go:204: 
        	Error Trace:	pkg/ccl/serverccl/statusccl/statusccl_test/pkg/ccl/serverccl/statusccl/tenant_status_test.go:204
        	Error:      	Not equal: 
        	            	expected: 822
        	            	actual  : 821
        	Test:       	TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out
        --- FAIL: TestTenantStatusAPI/tenant_span_stats/test_KV_node_fan-out (0.30s)

Parameters: TAGS=bazel,gss,deadlock

Help

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

Same failure on other branches

This test on roachdash | Improve this report!

craig bot pushed a commit that referenced this issue Mar 21, 2023
98527: sql: deprecate gossip-based physical planning r=dt a=dt

Previously system tenants and secondary tenants used differnt physical planning implementations, with the system tenant and only the system tenant using nodeIDs while other tenants used the instance table. This unifies those implementations such that all tenants use NodeIDs if running in mixed mode and use the instance table if not.

Release note: none.
Epic: CRDB-16910

98879: sql: support array-flatten subqueries within UDFs r=mgartner a=mgartner

Array-flatten subqueries (e.g., `ARRAY(SELECT a FROM t)`) are now
supported within UDFs. They are now converted to a normal subquery with
a ScalarGroupBy if they exist within a UDF, even if they are
uncorrelated. This allows them to be executed without any changes to the
execbuilder or the evaluation logic of `tree.Routine`.

Fixes #98738

Release note: None


98988: ui: add badges for filter elements r=maryliag a=maryliag

Adds badges for each of the selected filters on SQL Activity and
Insights pages.

Part Of #98891

https://www.loom.com/share/e7417209fc704d71b2733f58609fb4de

<img width="1160" alt="Screenshot 2023-03-19 at 1 30 49 PM" src="https://user-images.githubusercontent.com/1017486/226195412-03d3ef58-5d6d-4c24-84f1-6a55b952f5c0.png">

Release note (ui change): Adds badges for each selected
filter on SQL Activity and Insights pages.

99042: sql: added indexes to system.statement_statistics, system.transaction_statistics r=ericharmeling a=ericharmeling

Fixes #98624.

This commit adds indexes on new computed columns to the system.statement_statistics and system.transaction_statistics tables.

Epic: none

Release note: None

99054: pkg/ccl: Unskip TestTenantStatusAPI/tenant_ranges/pagination r=dhartunian a=abarganier

Fixes: #92979

Previously, in #97386, we skipped test_tenant_ranges_pagination because it was marked as flaky.

The test makes a request for a single range and expects an offset of `1` back. It then uses this offset to request a second range, and expects an offset of `2`. This means that the test requires at least 3 ranges to exist on the tenant.

The test was flaking on the assertion that the offset returned by the second request came back as `2`. Instead, it was flaking when the offset came back as `0`, which signifies that there are no more ranges to process.

We learned that the tenant create process has an asycnhronous splitting of ranges that occurs, which is what would lead to this sporadic scenario where not enough ranges existed (yet) for the test to succeed.

This patch updates the test with a `testutils.SucceedsSoon` clause that checks first that `crdb_internal.ranges` contains at least 3 ranges, prior to making the second request. This should provide sufficient time for the range split queue to be processed and eliminate the vast majority of these test flakes.

Release note: none

99119: kvserver: mark in-flight storage checkpoints r=tbg a=pavelkalinnikov

This commit makes it so that the consistency checker checkpoints are first created in a "_pending" folder, and only after completion are atomically renamed to the intended directory name. This is to help distinguish valid checkpoints from the ones that weren't finalized (for example, when the node crashed in the meantime).

Part of #81819
Epic: none
Release note (ops change): checkpoint directories (that can be created in the rare event of range inconsistency) are now clearly indicated as pending until they are fully populated. This is to help operators to distinguish valid checkpoints from corrupted ones.

Co-authored-by: David Taylor <[email protected]>
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: maryliag <[email protected]>
Co-authored-by: Eric Harmeling <[email protected]>
Co-authored-by: Alex Barganier <[email protected]>
Co-authored-by: Pavel Kalinnikov <[email protected]>
@craig craig bot closed this as completed in 0c69318 Mar 21, 2023
stevendanna pushed a commit to stevendanna/cockroach that referenced this issue Jun 8, 2023
Fixes: cockroachdb#92979

Previously, in cockroachdb#97386,
we skipped test_tenant_ranges_pagination because it was marked as flaky.

The test makes a request for a single range and expects an offset of `1`
back. It then uses this offset to request a second range, and expects
an offset of `2`. This means that the test requires at least 3 ranges
to exist on the tenant.

The test was flaking on the assertion that the offset returned by the
second request came back as `2`. Instead, it was flaking when the
offset came back as `0`, which signifies that there are no more
ranges to process.

We learned that the tenant create process has an asycnhronous splitting
of ranges that occurs, which is what would lead to this sporadic scenario
where not enough ranges existed (yet) for the test to succeed.

This patch updates the test with a `testutils.SucceedsSoon` clause that
checks first that `crdb_internal.ranges` contains at least 3 ranges,
prior to making the second request. This should provide sufficient time
for the range split queue to be processed and eliminate the vast majority
of these test flakes.

Release note: none
zachlite pushed a commit to zachlite/cockroach that referenced this issue Jul 11, 2023
Fixes: cockroachdb#92979

Previously, in cockroachdb#97386,
we skipped test_tenant_ranges_pagination because it was marked as flaky.

The test makes a request for a single range and expects an offset of `1`
back. It then uses this offset to request a second range, and expects
an offset of `2`. This means that the test requires at least 3 ranges
to exist on the tenant.

The test was flaking on the assertion that the offset returned by the
second request came back as `2`. Instead, it was flaking when the
offset came back as `0`, which signifies that there are no more
ranges to process.

We learned that the tenant create process has an asycnhronous splitting
of ranges that occurs, which is what would lead to this sporadic scenario
where not enough ranges existed (yet) for the test to succeed.

This patch updates the test with a `testutils.SucceedsSoon` clause that
checks first that `crdb_internal.ranges` contains at least 3 ranges,
prior to making the second request. This should provide sufficient time
for the range split queue to be processed and eliminate the vast majority
of these test flakes.

Release note: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-observability-inf branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. skipped-test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants