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

flaky test TestMergeIterSwitchMode #48223

Closed
Tracked by #41316
hawkingrei opened this issue Nov 2, 2023 · 1 comment · Fixed by #48232
Closed
Tracked by #41316

flaky test TestMergeIterSwitchMode #48223

hawkingrei opened this issue Nov 2, 2023 · 1 comment · Fixed by #48232
Assignees
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. component/test severity/major type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

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

3. What did you see instead (Required)

 --- FAIL: TestMergeIterSwitchMode (9.57s)
panic: runtime error: makeslice: len out of range [recovered]
	panic: runtime error: makeslice: len out of range
goroutine 108 [running]:
testing.tRunner.func1.2({0x42ac00, 0xe69dc0})
	GOROOT/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
	GOROOT/src/testing/testing.go:1548 +0x397
panic({0x42ac00?, 0xe69dc0?})
	GOROOT/src/runtime/panic.go:914 +0x21f
github.com/pingcap/tidb/br/pkg/lightning/backend/external.(*byteReader).readNBytes(0xc000ed4000, 0x56884590091540f1)
	br/pkg/lightning/backend/external/byte_reader.go:209 +0x125
github.com/pingcap/tidb/br/pkg/lightning/backend/external.(*kvReader).nextKV(0xc006de6018)
	br/pkg/lightning/backend/external/kv_reader.go:59 +0xe5
github.com/pingcap/tidb/br/pkg/lightning/backend/external.kvReaderProxy.next({{0xc004c4c217?, 0xc003424b10?}, 0xc006de6018?})
	br/pkg/lightning/backend/external/iter.go:336 +0x2e
github.com/pingcap/tidb/br/pkg/lightning/backend/external.(*mergeIter[...]).next(0xeb2240)
	br/pkg/lightning/backend/external/iter.go:277 +0x29a
github.com/pingcap/tidb/br/pkg/lightning/backend/external.(*MergeKVIter).Next(...)
	br/pkg/lightning/backend/external/iter.go:405
github.com/pingcap/tidb/br/pkg/lightning/backend/external.testMergeIterSwitchMode(0xc000f376c0?, 0xc000867f28)
	br/pkg/lightning/backend/external/iter_test.go:323 +0x4f8
github.com/pingcap/tidb/br/pkg/lightning/backend/external.TestMergeIterSwitchMode(0xc000f376c0)
	br/pkg/lightning/backend/external/iter_test.go:275 +0x1a7
testing.tRunner(0xc000f376c0, 0x947518)
	GOROOT/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
	GOROOT/src/testing/testing.go:1648 +0x3ad
-- 

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added the type/bug The issue is confirmed as a bug. label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 component/ddl This issue is related to DDL of TiDB. component/test severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants