You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/04 10:58:44 UTC

[GitHub] [pulsar] RobertIndie opened a new issue, #16948: Flaky-test: ManagedCursorMetricsTest. testManagedCursorMetrics

RobertIndie opened a new issue, #16948:
URL: https://github.com/apache/pulsar/issues/16948

   <!--- 
   
   Instructions for reporting a flaky test using this issue template:
   
   1. Replace test_class in title and body with the short test class name WITHOUT the package name.
   2. Replace test_method in title and body with the test method that failed. Multiple methods are flaky, remove the content that refers to the test method.
   3. Replace "url here" with a url to an example failure. In the Github Actions workflow run logs, you can right click on the line number to copy a link to the line. Example of such url is https://github.com/apache/pulsar/pull/8892/checks?check_run_id=1531075794#step:9:377 . The logs are available for a limited amount of time (usually for a few weeks).
   4. Replace "relevant parts of the exception stacktrace here" with the a few lines of the stack trace that shows at least the exception message and the line of test code where the stacktrace occurred.
   5. Replace "full exception stacktrace here" with the full exception stacktrace from logs. This section will be hidden by default.
   6. Remove all unused fields / content to unclutter the reported issue. Remove this comment too.
   
   -->
   ManagedCursorMetricsTest. testManagedCursorMetrics is flaky. It fails sporadically.
   
   https://github.com/apache/pulsar/pull/16878 didn't fix the issue. The problem still exists in the latest code.
   
   [example failure](https://github.com/apache/pulsar/runs/7666921482?check_suite_focus=true#step:10:950)
   
   ```
     Error:  testCursorReadWriteMetrics(org.apache.pulsar.broker.stats.ManagedCursorMetricsTest)  Time elapsed: 0.449 s  <<< FAILURE!
     java.lang.AssertionError: did not expect [0] but found [0]
     	at org.testng.Assert.fail(Assert.java:99)
     	at org.testng.Assert.failEquals(Assert.java:1041)
     	at org.testng.Assert.assertNotEqualsImpl(Assert.java:147)
     	at org.testng.Assert.assertNotEquals(Assert.java:1531)
     	at org.testng.Assert.assertNotEquals(Assert.java:1535)
     	at org.apache.pulsar.broker.stats.ManagedCursorMetricsTest.testCursorReadWriteMetrics(ManagedCursorMetricsTest.java:246)
   ```
   
   <!-- optionally provide the full stacktrace ->
   <details>
   <summary>Full exception stacktrace</summary>
   <code><pre>
   full exception stacktrace here
   </pre></code>
   </details>
   


-- 
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-unsubscribe@pulsar.apache.org.apache.org

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


[GitHub] [pulsar] poorbarcode commented on issue #16948: Flaky-test: ManagedCursorMetricsTest. testManagedCursorMetrics

Posted by GitBox <gi...@apache.org>.
poorbarcode commented on issue #16948:
URL: https://github.com/apache/pulsar/issues/16948#issuecomment-1210584682

   Hi @RobertIndie , @coderzc 
   
   > https://github.com/apache/pulsar/pull/16878 didn't fix the issue. The problem still exists in the latest code.
   > https://github.com/apache/pulsar/runs/7718272297?check_suite_focus=true
   
   - #16878 fixed `testManagedCursorMetrics`, the test you provided is another method `testCursorReadWriteMetrics`, the title of this issue should change to `Flaky-test: ManagedCursorMetricsTest.testCursorReadWriteMetrics`


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] codelipenghui closed issue #16948: Flaky-test: ManagedCursorMetricsTest.testCursorReadWriteMetrics

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #16948: Flaky-test: ManagedCursorMetricsTest.testCursorReadWriteMetrics
URL: https://github.com/apache/pulsar/issues/16948


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] coderzc commented on issue #16948: Flaky-test: ManagedCursorMetricsTest. testManagedCursorMetrics

Posted by GitBox <gi...@apache.org>.
coderzc commented on issue #16948:
URL: https://github.com/apache/pulsar/issues/16948#issuecomment-1207764172

   +1 https://github.com/apache/pulsar/runs/7718272297?check_suite_focus=true


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] RobertIndie commented on issue #16948: Flaky-test: ManagedCursorMetricsTest. testManagedCursorMetrics

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on issue #16948:
URL: https://github.com/apache/pulsar/issues/16948#issuecomment-1205100777

   From the test log we can see that there are many zookeeper connection exceptions during the test:
   ```
   2022-08-04T07:27:04,903 - INFO  - [main-SendThread(127.0.0.1:45483):ClientCnxn$SendThread@1171] - Opening socket connection to server localhost/127.0.0.1:45483.
   2022-08-04T07:27:04,903 - INFO  - [main-SendThread(127.0.0.1:45483):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
   2022-08-04T07:27:04,904 - WARN  - [main-SendThread(127.0.0.1:45483):ClientCnxn$SendThread@1292] - Session 0x100000c35b70002 for server localhost/127.0.0.1:45483, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
   java.net.ConnectException: Connection refused
   	at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
   	at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
   	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:946) ~[?:?]
   	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344) ~[zookeeper-3.8.0.jar:3.8.0]
   	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1282) ~[zookeeper-3.8.0.jar:3.8.0]
   ```


-- 
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-unsubscribe@pulsar.apache.org

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