We decide to release 2.7.4, but we meet some flaky tests in branch-2.7. We will disable these flaky tests temporarily and use this issue to track them and if anyone is interested in fixing, feel free to push the pr.
Flaky tests:
AdminApiTest2#testMaxSubPerTopicApi
2021-12-14T11:03:47.4263908Z [ERROR] Run 2: AdminApiTest2.testMaxSubPerTopicApi:1574 expected [null] but found [200]
AdminTest#properties
2021-12-14T11:03:47.4304265Z [ERROR] Run 2: AdminTest.properties:521 expected [500] but found [404]
TopicReaderTest#testMessageAvailableAfterRestart
2021-12-14T10:24:07.9855447Z [ERROR] Run 2: TopicReaderTest.testMessageAvailableAfterRestart:944 expected [false] but found [true]
KeySharedSubscriptionTest#testRemoveFirstConsumer
2021-12-14T10:24:07.9849884Z [ERROR] Run 2: KeySharedSubscriptionTest.testRemoveFirstConsumer:690 expected [0] but found [10]
Error: testBlockBrokerDispatching(org.apache.pulsar.client.api.DispatcherBlockConsumerTest) Time elapsed: 5.58 s <<< FAILURE!
java.lang.AssertionError: expected [600] but found [495]
at org.apache.pulsar.client.api.DispatcherBlockConsumerTest.testBlockBrokerDispatching(DispatcherBlockConsumerTest.java:816)
ReplicatorTest#testReplicatorWithPartitionedTopic
[ERROR] Tests run: 27, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 171.283 s <<< FAILURE! - in org.apache.pulsar.broker.service.ReplicatorTest
2021-12-15T00:18:46.8530491Z [ERROR] testReplicatorWithPartitionedTopic(org.apache.pulsar.broker.service.ReplicatorTest) Time elapsed: 30.239 s <<< FAILURE!
2021-12-15T00:18:46.8533510Z org.apache.pulsar.client.admin.PulsarAdminException$ServerSideErrorException: HTTP 500 Internal Server Errorjava.io.ByteArrayInputStream@a5bfb6
Error: testBlockByPublishRateLimiting(org.apache.pulsar.broker.service.MessagePublishBufferThrottleTest) Time elapsed: 1.505 s <<< FAILURE!
java.lang.AssertionError: expected [0] but found [1048628]
at org.apache.pulsar.broker.service.MessagePublishBufferThrottleTest.testBlockByPublishRateLimiting(MessagePublishBufferThrottleTest.java:156)
Error: testMessagePublishBufferThrottleEnable(org.apache.pulsar.broker.service.MessagePublishBufferThrottleTest) Time elapsed: 1.482 s <<< FAILURE!
java.lang.AssertionError: expected [0] but found [1048628]
at org.apache.pulsar.broker.service.MessagePublishBufferThrottleTest.testMessagePublishBufferThrottleEnable(MessagePublishBufferThrottleTest.java:111)
java.lang.AssertionError: expected [val1-9] but found [val1-3]
at org.apache.pulsar.tests.integration.functions.PulsarStateTest.testSinkState(PulsarStateTest.java:182)
SmokeTest#setup
Error: setup(org.apache.pulsar.tests.integration.SmokeTest) Time elapsed: 302.441 s <<< FAILURE!
org.testcontainers.containers.ContainerLaunchException: Container startup failed
Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for URL to be accessible (http://localhost:49184/admin/v2/namespaces/public/default should return HTTP [200])
2021-12-15T09:55:34.0951669Z [ERROR] pulsar-test-suite(org.apache.pulsar.tests.integration.functions.PulsarFunctionsProcessTest) Time elapsed: 43.382 s <<< FAILURE!
2021-12-15T09:55:34.0954063Z java.lang.NullPointerException
2021-12-15T09:55:34.0957121Z at org.apache.pulsar.tests.integration.functions.PulsarFunctionsTest.publishAndConsumeMessages(PulsarFunctionsTest.java:2705)
NegativeAcksTest#testNegativeAcks
NegativeAcksTest.testNegativeAcks:151 expected [null] but found [org.apache.pulsar.client.impl.MessageImpl@22b3ef5]
2021-12-15T13:07:53.3690065Z [ERROR] Run 2: PersistentDispatcherFailoverConsumerTest.testAddRemoveConsumerNonPartitionedTopic:508
2021-12-15T13:07:53.3692327Z Wanted but not invoked:
2021-12-15T13:07:53.3693128Z consumer.notifyActiveConsumerChange(
2021-12-15T13:07:53.3696542Z same(Consumer$MockitoMock$1319454305{subscription=PersistentSubscription{topic=persistent://part-perf/global/perf.t1/ptopic, name=sub-1}, consumerId=2, consumerName=Cons2, address=localhost/127.0.0.1:1234})
2021-12-15T13:07:53.3697923Z );
2021-12-15T13:07:53.3702608Z -> at org.apache.pulsar.broker.service.PersistentDispatcherFailoverConsumerTest.testAddRemoveConsumerNonPartitionedTopic(PersistentDispatcherFailoverConsumerTest.java:508)
2021-12-15T13:07:53.3706917Z
2021-12-15T13:07:53.3707436Z However, there was exactly 1 interaction with this mock:
[ERROR] testGetFromEmptyCallback(org.apache.pulsar.io.kafka.connect.PulsarOffsetBackingStoreTest) Time elapsed: 300.009 s <<< FAILURE!
2021-12-15T16:29:12.3112213Z org.testng.internal.thread.ThreadTimeoutException: Method org.apache.pulsar.io.kafka.connect.PulsarOffsetBackingStoreTest.testGetFromEmptyCallback() didn't finish within the time-out 300000
Original Issue: apache/pulsar#13299
Motivation
We decide to release 2.7.4, but we meet some flaky tests in branch-2.7. We will disable these flaky tests temporarily and use this issue to track them and if anyone is interested in fixing, feel free to push the pr.
Flaky tests:
AdminApiTest2#testMaxSubPerTopicApi
AdminTest#properties
TopicReaderTest#testMessageAvailableAfterRestart
KeySharedSubscriptionTest#testRemoveFirstConsumer
DispatcherBlockConsumerTest#testBlockBrokerDispatching
ReplicatorTest#testReplicatorWithPartitionedTopic
MessagePublishBufferThrottleTest#testBlockByPublishRateLimiting
MessagePublishBufferThrottleTest#testMessagePublishBufferThrottleEnable
TopicReaderTest#testMultiReaderMessageAvailableAfterRestart
TopicReaderTest#testMessageAvailableAfterRestart
NonPersistentTopicE2ETest#testGCWillDeleteSchema
SubscriptionSeekTest#testSeekForBatchMessageAndSpecifiedBatchIndex
PeerReplicatorTest#testPeerClusterTopicLookup
PrometheusMetricsTest#testAuthMetrics
PersistentTopicsTest#testPeekWithSubscriptionNameNotExist
PulsarStateTest#testSinkState
SmokeTest#setup
CurrentLedgerRolloverIfFullTest#testCurrentLedgerRolloverIfFull
ManagedLedgerCompressionTest#testRestartBrokerEnableManagedLedgerInfoCompression
PulsarStateTest
PulsarFunctionsThreadTest
PulsarFunctionsTest
AdminApiTlsAuthTest#testDeleteNamespace
PulsarFunctionsProcessTest#publishAndConsumeMessages
NegativeAcksTest#testNegativeAcks
PersistentDispatcherFailoverConsumerTest#testAddRemoveConsumerNonPartitionedTopic
PulsarOffsetBackingStoreTest#testGetFromEmptyCallback
DeadLetterTopicTest#testDeadLetterTopicByCustomTopicName
TopicReaderTest#testMultiReaderBuilderConcurrentCreate