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 kafkaSuite.TestNewSaramaProducer is flaky #385

Closed
pingyu opened this issue Jan 4, 2024 · 1 comment
Closed

cdc,tests: unit test kafkaSuite.TestNewSaramaProducer is flaky #385

pingyu opened this issue Jan 4, 2024 · 1 comment
Labels
type/bug Something isn't working

Comments

@pingyu
Copy link
Collaborator

pingyu commented Jan 4, 2024

Bug Report

1. Describe the bug

=== FAIL: cdc/sink/producer/kafka Test (60.61s)

----------------------------------------------------------------------
FAIL: kafka_test.go:65: kafkaSuite.TestNewSaramaProducer

kafka_test.go:167:
    c.Assert(err, check.IsNil)
... value *errors.withStack = [CDC:ErrKafkaSendMessage]kafka send message failed: kafka: Failed to deliver 2 messages. ("[CDC:ErrKafkaSendMessage]kafka send message failed: kafka: Failed to deliver 2 messages.")

[2024/01/03 23:44:01.375 +08:00] [ERROR] [kafka.go:222] ["close async client with error"] [error="kafka: Failed to deliver 1 messages."] [stack="github.com/tikv/migration/cdc/cdc/sink/producer/kafka.(*kafkaSaramaProducer).Close\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/sink/producer/kafka/kafka.go:222\ngithub.com/tikv/migration/cdc/cdc/sink/producer/kafka.(*kafkaSuite).TestProducerSendMessageFailed.func4\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/sink/producer/kafka/kafka_test.go:364\ngithub.com/tikv/migration/cdc/cdc/sink/producer/kafka.(*kafkaSuite).TestProducerSendMessageFailed\n\t/home/jenkins/agent/workspace/tikv/migration/pull_unit_test/migration/cdc/cdc/sink/producer/kafka/kafka_test.go:397\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:596\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:380\ngithub.com/pingcap/check.(*suiteRunner).forkTest.func1\n\t/go/pkg/mod/github.com/pingcap/check@v0.0.0-20211026125417-57bd13f7b5f0/check.go:850\ngithub.com/pingcap/check.(*suiteRunner).forkCall.func1\n\t/go/pkg/mod/github.com/pingcap/check@v0.0.0-20211026125417-57bd13f7b5f0/check.go:739"]

OOPS: 8 passed, 1 FAILED

See https://do.pingcap.net/jenkins/blue/organizations/jenkins/tikv%2Fmigration%2Fpull_unit_test/detail/pull_unit_test/16/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 4, 2024
@pingyu pingyu changed the title cdc: unit test kafkaSuite.TestNewSaramaProducer is flaky cdc,tests: unit test kafkaSuite.TestNewSaramaProducer is flaky Jan 4, 2024
@pingyu
Copy link
Collaborator Author

pingyu commented Mar 5, 2024

Duplicated with #388

@pingyu pingyu closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 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