Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

[BUG] testBrokerRespectsPartitionsOrderAndSizeLimits is flaky #246

@BewareMyPower

Description

@BewareMyPower

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.

Expected behavior
The test should not fail.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions