You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
[BUG] testBrokerRespectsPartitionsOrderAndSizeLimits is flaky #246
Describe the bug
Sometimes testBrokerRespectsPartitionsOrderAndSizeLimits may fail like
Error: testBrokerRespectsPartitionsOrderAndSizeLimits(io.streamnative.pulsar.handlers.kop.KafkaApisTest) Time elapsed: 2.08 s <<< FAILURE!
java.lang.AssertionError: expected [true] but found [false]
/* ... */
at io.streamnative.pulsar.handlers.kop.KafkaApisTest.testBrokerRespectsPartitionsOrderAndSizeLimits(KafkaApisTest.java:550)
which is rarely seen in local environment.
In local environment, it could fail with
java.lang.AssertionError: expected [29] but found [30]
Expected :29
Actual :30
at io.streamnative.pulsar.handlers.kop.KafkaApisTest.checkFetchResponse(KafkaApisTest.java:364)
at io.streamnative.pulsar.handlers.kop.KafkaApisTest.testBrokerRespectsPartitionsOrderAndSizeLimits(KafkaApisTest.java:591)
The expected integer could also be 28 or other number. I've run it in my local environment for 10 times, only succeed for 3 times.
To Reproduce
Run testBrokerRespectsPartitionsOrderAndSizeLimits.
Activity
BewareMyPower commentedon Dec 24, 2020
Sometimes some configs need changes, for example:
maxPartitionBytesfrom 190 to 900numberTopicsfrom 5 to 8Fix tests that were ignored in #296 (#333)