Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

[BUG] testBrokerRespectsPartitionsOrderAndSizeLimits is flaky #246

Open

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.

Activity

  1. BewareMyPower commented on Dec 24, 2020

    @BewareMyPower
    ContributorAuthor

    Sometimes some configs need changes, for example:

  2. added a commit that references this issue on Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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