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

panic in TestGetMaxRunningTasksLimit #57587

Open
D3Hunter opened this issue Nov 21, 2024 · 1 comment
Open

panic in TestGetMaxRunningTasksLimit #57587

D3Hunter opened this issue Nov 21, 2024 · 1 comment
Assignees
Labels
sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@D3Hunter
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

see https://do.pingcap.net/jenkins/blue/rest/organizations/jenkins/pipelines/pingcap/pipelines/tidb/pipelines/ghpr_unit_test/runs/22863/nodes/63/steps/69/log/?start=0

=== RUN   TestGetMaxRunningTasksLimit
[2024/11/21 07:41:31.629 +00:00] [ERROR] [region_cache.go:685] ["cluster id is not set properly"] [stack="github.com/tikv/client-go/v2/internal/locate.NewRegionCache\n\texternal/com_github_tikv_client_go_v2/internal/locate/region_cache.go:685\ngithub.com/tikv/client-go/v2/tikv.NewRegionCache\n\texternal/com_github_tikv_client_go_v2/tikv/region.go:211\ngithub.com/pingcap/tidb/pkg/ttl/ttlworker.TestGetMaxRunningTasksLimit\n\tpkg/ttl/ttlworker/task_manager_test.go:228\ntesting.tRunner\n\tGOROOT/src/testing/testing.go:1690"]
--- PASS: TestGetMaxRunningTasksLimit (0.00s)
PASS
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x3862f03]

goroutine 122 [running]:
github.com/tikv/client-go/v2/internal/locate.(*storeCacheImpl).fetchAllStores(0xc001edeb00, {0xa544708, 0xc000e0e280})
	external/com_github_tikv_client_go_v2/internal/locate/store_cache.go:121 +0x43
github.com/tikv/client-go/v2/internal/locate.refreshFullStoreList({0xa544708, 0xc000e0e280}, {0xa57fee0, 0xc001edeb00})
	external/com_github_tikv_client_go_v2/internal/locate/region_cache.go:740 +0x70
github.com/tikv/client-go/v2/internal/locate.NewRegionCache.func3({0xa544708, 0xc000e0e280}, {0x0?, 0x0?, 0x0?})
	external/com_github_tikv_client_go_v2/internal/locate/region_cache.go:731 +0x5d
github.com/tikv/client-go/v2/internal/locate.(*bgRunner).schedule.func1()
	external/com_github_tikv_client_go_v2/internal/locate/region_cache.go:574 +0x25a
created by github.com/tikv/client-go/v2/internal/locate.(*bgRunner).schedule in goroutine 117
	external/com_github_tikv_client_go_v2/internal/locate/region_cache.go:563 +0x148
--
Coverage runner: Not collecting coverage for failed test.
The following commands failed with status 2
/home/jenkins/.tidb/tmp/63a9840cd0739f2c243bb46478607469/sandbox/linux-sandbox/21343/execroot/__main__/bazel-out/k8-fastbuild/bin/pkg/ttl/ttlworker/ttlworker_test_/ttlworker_test.runfiles/__main__/pkg/ttl/ttlworker/ttlworker_test_/ttlworker_test

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

found in this pr #57557, but seems not directly related to it

@D3Hunter D3Hunter added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra labels Nov 21, 2024
@bb7133 bb7133 added sig/transaction SIG:Transaction and removed sig/sql-infra SIG: SQL Infra labels Nov 22, 2024
@zyguan
Copy link
Contributor

zyguan commented Nov 27, 2024

Caused by the test, it news a region cache without pd client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants