3pacccccc commented on issue #24629:
URL: https://github.com/apache/pulsar/issues/24629#issuecomment-3193473211

   > [@3pacccccc](https://github.com/3pacccccc) The problem seems to preserve 
even after the most recent fix. You can reproduce with this command:
   > 
   > mvn -Pcore-modules,-main -T 1C clean install -DskipTests 
-Dspotbugs.skip=true -DnarPluginPhase=none
   > mvn -DredirectTestOutputToFile=false -DtestRetryCount=0 test -pl 
pulsar-broker -Dtest=org.apache.pulsar.client.impl.ZeroQueueSizeTest
   > ```
   > [ERROR] Tests run: 39, Failures: 1, Errors: 0, Skipped: 33, Time elapsed: 
13.988 s <<< FAILURE! - in org.apache.pulsar.client.impl.ZeroQueueSizeTest
   > [ERROR] 
org.apache.pulsar.client.impl.ZeroQueueSizeTest.testZeroQueueGetExceptionWhenReceiveBatchMessage
  Time elapsed: 0.048 s  <<< FAILURE!
   > java.lang.AssertionError:
   > 
   > Expecting code to raise a throwable.
   >         at 
org.apache.pulsar.client.impl.ZeroQueueSizeTest.testZeroQueueGetExceptionWhenReceiveBatchMessage(ZeroQueueSizeTest.java:456)
   >         at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
   >         at java.base/java.lang.reflect.Method.invoke(Method.java:580)
   >         at 
org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
   >         at 
org.testng.internal.invokers.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:47)
   >         at 
org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:76)
   >         at 
org.testng.internal.invokers.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
   >         at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
   >         at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
   >         at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
   >         at java.base/java.lang.Thread.run(Thread.java:1583)
   > 
   > [INFO]
   > [INFO] Results:
   > [INFO]
   > [ERROR] Failures:
   > [ERROR]   
ZeroQueueSizeTest.testZeroQueueGetExceptionWhenReceiveBatchMessage:456
   > Expecting code to raise a throwable.
   > ```
   > 
   > I tested with latest master branch 
[ba4f715](https://github.com/apache/pulsar/commit/ba4f715de39d3b087b57d8339490849d6d8108ec)
   
   Hi, Lari
   I reproduce the issue as you described. After investigating, I found the 
root cause:
   ```ZeroQueueSizeTest.testZeroQueueGetExceptionWhenReceiveBatchMessage``` 
uses the same topic as 
```ZeroQueueSizeTest.testFailedZeroQueueSizeBatchMessage```. Since 
testFailedZeroQueueSizeBatchMessage sends some non-batch messages, it 
interferes with this test's behavior.
   
   I confirmed that changing the topic in 
```testZeroQueueGetExceptionWhenReceiveBatchMessage``` to a unique one makes 
the test pass.
   I'm sorry I didn't notice this when I wrote this test, should I push a PR to 
fix this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to