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

cdc,tests: unit test TestRecvLargeMessageSize is flaky #390

Open
pingyu opened this issue Jan 24, 2024 · 0 comments
Open

cdc,tests: unit test TestRecvLargeMessageSize is flaky #390

pingyu opened this issue Jan 24, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@pingyu
Copy link
Collaborator

pingyu commented Jan 24, 2024

Bug Report

1. Describe the bug

Unit test TestRecvLargeMessageSize is flaky:

----------------------------------------------------------------------
PANIC: client_test.go:431: clientSuite.TestRecvLargeMessageSize

... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x473D8F)

/usr/local/go/src/runtime/panic.go:920
  in gopanic
/usr/local/go/src/runtime/panic.go:261
  in panicmem
/usr/local/go/src/runtime/signal_unix.go:861
  in sigpanic
client_test.go:511
  in clientSuite.TestRecvLargeMessageSize
/usr/local/go/src/reflect/value.go:380
  in Value.Call
/go/pkg/mod/github.com/pingcap/[email protected]/check.go:850
  in suiteRunner.forkTest.func1
/go/pkg/mod/github.com/pingcap/[email protected]/check.go:739
  in suiteRunner.forkCall.func1
/usr/local/go/src/runtime/asm_amd64.s:1650
  in goexit

[2024/01/24 12:37:48.979 +08:00] [ERROR] [client_test.go:3323] ["mock server error"] [error="rpc error: code = Canceled desc = context canceled"] [stack="github.com/tikv/migration/cdc/cdc/kv.(*clientSuite).TestRegionWorkerExitWhenIsIdle.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:3323\ngithub.com/tikv/migration/cdc/cdc/kv.(*mockChangeDataService).EventFeed.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:252"]
[2024/01/24 12:38:12.904 +08:00] [ERROR] [client_test.go:1507] ["mock server error"] [error="rpc error: code = Canceled desc = context canceled"] [stack="github.com/tikv/migration/cdc/cdc/kv.(*clientSuite).TestStreamRecvWithErrorAndResolvedGoBack.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:1507\ngithub.com/tikv/migration/cdc/cdc/kv.(*mockChangeDataService).EventFeed.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:252"]
[2024/01/24 12:38:13.030 +08:00] [ERROR] [client_test.go:1507] ["mock server error"] [error="rpc error: code = Canceled desc = context canceled"] [stack="github.com/tikv/migration/cdc/cdc/kv.(*clientSuite).TestStreamRecvWithErrorAndResolvedGoBack.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:1507\ngithub.com/tikv/migration/cdc/cdc/kv.(*mockChangeDataService).EventFeed.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:252"]
[2024/01/24 12:38:20.272 +08:00] [ERROR] [client_test.go:1318] ["mock server error"] [error="rpc error: code = Canceled desc = context canceled"] [stack="github.com/tikv/migration/cdc/cdc/kv.(*clientSuite).TestStreamSendWithError.func4\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:1318\ngithub.com/tikv/migration/cdc/cdc/kv.(*mockChangeDataService).EventFeed.func1\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/kv/client_test.go:252"]

OOPS: 48 passed, 1 skipped, 1 PANICKED

DONE 231 tests, 1 failure in 703.043s

See https://do.pingcap.net/jenkins/blue/organizations/jenkins/tikv%2Fmigration%2Fpull_unit_test/detail/pull_unit_test/33/pipeline/.

2. Minimal reproduce step (Required)

Run unit tests in CI.

3. What did you see instead (Required)

Test failed.

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

Test succeed.

5. What is your migration tool and TiKV version? (Required)

@pingyu pingyu added the type/bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant