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

Failed to run UT on PC #8814

Open
zgcbj opened this issue Nov 14, 2024 · 0 comments
Open

Failed to run UT on PC #8814

zgcbj opened this issue Nov 14, 2024 · 0 comments
Labels
type/bug The issue is confirmed as a bug.

Comments

@zgcbj
Copy link

zgcbj commented Nov 14, 2024

Bug Report

When I run ut with make ci-test-job JOB_COUNT=1 JOB_INDEX=1 on PC, there are many POTENTIAL DEADLOCKs. Why doesn't github action report an error?

What did you do?

git clone [email protected]:tikv/pd.git
git checkout v8.1.1
cd pd
make ci-test-job JOB_COUNT=1 JOB_INDEX=1

What did you expect to see?

All UT can pass

What did you see instead?

[2024/11/14 16:00:44.212 +08:00] [INFO] [key_manager.go:131] ["saved encryption keys"]
FAIL    github.com/tikv/pd/pkg/encryption       10.768s
ok      github.com/tikv/pd/pkg/election 72.475s coverage: 1.5% of statements in ./...
ok      github.com/tikv/pd/pkg/dashboard/adapter        1.782s  coverage: 1.1% of statements in ./...
POTENTIAL DEADLOCK: Duplicate locking, saw callers this locks in one goroutine:
current goroutine 2 lock &{{{0 0} 0 0 {{} 1} {{} 0}}}
all callers to this lock in the goroutine
sliding_window.go:118 storelimit.(*SlidingWindows).Available { s.mu.RLock() } <<<<<
limit_test.go:138 storelimit.TestFeedback.func1 { if s.Available(regionSize, SendSnapshot, constant.Low) && iter.Load() > 0 { }

sliding_window.go:151 storelimit.(*SlidingWindows).Ack { s.mu.Lock() } <<<<<
/usr/local/go23/go/src/container/list/list.go:70 list.(*List).Front { if l.len == 0 { }


Other goroutines holding locks:


FAIL    github.com/tikv/pd/pkg/core/storelimit  0.207s

What version of PD are you using (pd-server -V)?

tag: v8.1.1

@zgcbj zgcbj added the type/bug The issue is confirmed as a bug. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant