apache / apache/pulsar

Flaky-test: [org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest].[testMTProduceConsumeRGUsage]

Open
#12,033 2 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

[org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest] is flaky. The [testMTProduceConsumeRGUsage] test method fails sporadically.

[example failure](https://github.com/apache/pulsar/pull/12032/checks?check_run_id=3594996553#step:9:1898)

```
java.lang.AssertionError: expected [3200] but found [0]
.....
at org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest.testProduceConsumeUsageOnRG(RGUsageMTAggrWaitForAllMesgsTest.java:467)
at org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest.testMTProduceConsumeRGUsage(RGUsageMTAggrWaitForAllMesgsTest.java:109)
.....
```

Full exception stacktrace

java.lang.AssertionError: expected [3200] but found [0]

at org.testng.Assert.fail(Assert.java:99)
at org.testng.Assert.failNotEquals(Assert.java:1037)
at org.testng.Assert.assertEqualsImpl(Assert.java:140)
at org.testng.Assert.assertEquals(Assert.java:122)
at org.testng.Assert.assertEquals(Assert.java:907)
at org.testng.Assert.assertEquals(Assert.java:917)
at org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest.testProduceConsumeUsageOnRG(RGUsageMTAggrWaitForAllMesgsTest.java:467)
at org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest.testMTProduceConsumeRGUsage(RGUsageMTAggrWaitForAllMesgsTest.java:109)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Contributor guide

Open the contributing guide

Research direction

Start with org.apache.pulsar.broker.resourcegroup.RGUsageMTAggrWaitForAllMesgsTest, especially testMTProduceConsumeRGUsage and testProduceConsumeUsageOnRG at lines 109 and 467. Reproduce the linked failure and trace why the assertion sees 0 instead of 3200; done means the test no longer fails sporadically while preserving its expected usage checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.