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 2021/08/18 17:51:21 UTC
[GitHub] [pulsar] lhotari opened a new issue #11704: Flaky-test: AdminApiTest.testGetPartitionedStatsInternal
lhotari opened a new issue #11704:
URL: https://github.com/apache/pulsar/issues/11704
<!---
Instructions for reporting a flaky test using this issue template:
1. Replace [test class] in title and body with the test class 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 leat the exception message and the line of test code where the stacktrace occured.
5. Replace "full exception stacktrace here" with the full exception stacktrace from logs. This section will be hidded by default.
6. Remove all unused fields / content to unclutter the reported issue. Remove this comment too.
-->
AdminApiTest is flaky. The testGetPartitionedStatsInternal test method fails sporadically.
[example failure](https://github.com/apache/pulsar/pull/11697/checks?check_run_id=3363209858#step:10:1100)
```
Error: testGetPartitionedStatsInternal(org.apache.pulsar.broker.admin.AdminApiTest) Time elapsed: 1.189 s <<< FAILURE!
java.lang.AssertionError: expected [{"metadata":{"partitions":2},"partitions":{"persistent://prop-xyz/ns1/my-topic6d7497f0-18ce-4b04-b90f-6dfd85e5e2cc-partition-0":{"entriesAddedCounter":0,"numberOfEntries":0,"totalSize":0,"currentLedgerEntries":0,"currentLedgerSize":0,"lastLedgerCreatedTimestamp":"2021-08-18T16:47:54.744Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"3:-1","state":"LedgerOpened","ledgers":[],"cursors":{"my-sub":{"markDeletePosition":"3:-1","readPosition":"3:0","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":4,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2021-08-18T16:47:54.748Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":1,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"offloaded
":false,"underReplicated":false}},"persistent://prop-xyz/ns1/my-topic6d7497f0-18ce-4b04-b90f-6dfd85e5e2cc-partition-1":{"entriesAddedCounter":10,"numberOfEntries":10,"totalSize":430,"currentLedgerEntries":10,"currentLedgerSize":430,"lastLedgerCreatedTimestamp":"2021-08-18T16:47:54.757Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"5:9","state":"LedgerOpened","ledgers":[{"ledgerId":5,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"5:-1","readPosition":"5:10","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":6,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2021-08-18T16:47:54.761Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":11,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId
":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}}}}] but found [{"metadata":{"partitions":2},"partitions":{"persistent://prop-xyz/ns1/my-topic6d7497f0-18ce-4b04-b90f-6dfd85e5e2cc-partition-0":{"entriesAddedCounter":0,"numberOfEntries":0,"totalSize":0,"currentLedgerEntries":0,"currentLedgerSize":0,"lastLedgerCreatedTimestamp":"2021-08-18T16:47:54.744Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"3:-1","state":"LedgerOpened","ledgers":[{"ledgerId":3,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"3:-1","readPosition":"3:0","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":4,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2021-08-18T16:47:54.748Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":1,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptionHavePen
dingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}},"persistent://prop-xyz/ns1/my-topic6d7497f0-18ce-4b04-b90f-6dfd85e5e2cc-partition-1":{"entriesAddedCounter":10,"numberOfEntries":10,"totalSize":430,"currentLedgerEntries":10,"currentLedgerSize":430,"lastLedgerCreatedTimestamp":"2021-08-18T16:47:54.757Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"5:9","state":"LedgerOpened","ledgers":[{"ledgerId":5,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"5:-1","readPosition":"5:10","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":6,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2021-08-18T16:47:54.761Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":11,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHave
PendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}}}}]
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:629)
at org.testng.Assert.assertEquals(Assert.java:639)
at org.apache.pulsar.broker.admin.AdminApiTest.testGetPartitionedStatsInternal(AdminApiTest.java:1158)
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)
```
--
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] lhotari commented on issue #11704: Flaky-test: AdminApiTest.testGetPartitionedStatsInternal
Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #11704:
URL: https://github.com/apache/pulsar/issues/11704#issuecomment-1006388385
[recent failure](https://github.com/apache/pulsar/runs/4724281539?check_suite_focus=true#step:9:383)
```
Error: Tests run: 139, Failures: 34, Errors: 0, Skipped: 69, Time elapsed: 273.243 s <<< FAILURE! - in org.apache.pulsar.broker.admin.AdminApiTest
Error: testGetPartitionedStatsInternal(org.apache.pulsar.broker.admin.AdminApiTest) Time elapsed: 1.212 s <<< FAILURE!
java.lang.AssertionError: expected [{"metadata":{"partitions":2},"partitions":{"persistent://prop-xyz/ns1/my-topicf4707dcd-c1de-41d5-892f-eba9fbe4a936-partition-0":{"entriesAddedCounter":10,"numberOfEntries":10,"totalSize":430,"currentLedgerEntries":10,"currentLedgerSize":430,"lastLedgerCreatedTimestamp":"2022-01-06T07:32:27.748Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"3:9","state":"LedgerOpened","ledgers":[],"cursors":{"my-sub":{"markDeletePosition":"3:-1","readPosition":"3:10","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":6,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2022-01-06T07:32:27.759Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":11,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"o
ffloaded":false,"underReplicated":false}},"persistent://prop-xyz/ns1/my-topicf4707dcd-c1de-41d5-892f-eba9fbe4a936-partition-1":{"entriesAddedCounter":0,"numberOfEntries":0,"totalSize":0,"currentLedgerEntries":0,"currentLedgerSize":0,"lastLedgerCreatedTimestamp":"2022-01-06T07:32:27.748Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"4:-1","state":"LedgerOpened","ledgers":[{"ledgerId":4,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"4:-1","readPosition":"4:0","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":5,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2022-01-06T07:32:27.759Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":1,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId
":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}}}}] but found [{"metadata":{"partitions":2},"partitions":{"persistent://prop-xyz/ns1/my-topicf4707dcd-c1de-41d5-892f-eba9fbe4a936-partition-0":{"entriesAddedCounter":10,"numberOfEntries":10,"totalSize":430,"currentLedgerEntries":10,"currentLedgerSize":430,"lastLedgerCreatedTimestamp":"2022-01-06T07:32:27.748Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"3:9","state":"LedgerOpened","ledgers":[{"ledgerId":3,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"3:-1","readPosition":"3:10","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":6,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2022-01-06T07:32:27.759Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":11,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHavePendingRead":true,"subscriptio
nHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}},"persistent://prop-xyz/ns1/my-topicf4707dcd-c1de-41d5-892f-eba9fbe4a936-partition-1":{"entriesAddedCounter":0,"numberOfEntries":0,"totalSize":0,"currentLedgerEntries":0,"currentLedgerSize":0,"lastLedgerCreatedTimestamp":"2022-01-06T07:32:27.748Z","waitingCursorsCount":1,"pendingAddEntriesCount":0,"lastConfirmedEntry":"4:-1","state":"LedgerOpened","ledgers":[{"ledgerId":4,"entries":0,"size":0,"offloaded":false,"underReplicated":false}],"cursors":{"my-sub":{"markDeletePosition":"4:-1","readPosition":"4:0","waitingReadOp":true,"pendingReadOps":0,"messagesConsumedCounter":0,"cursorLedger":5,"cursorLedgerLastEntry":0,"individuallyDeletedMessages":"[]","lastLedgerSwitchTimestamp":"2022-01-06T07:32:27.759Z","state":"Open","numberOfEntriesSinceFirstNotAckedMessage":1,"totalNonContiguousDeletedMessagesRange":0,"subscriptionHave
PendingRead":true,"subscriptionHavePendingReplayRead":false,"properties":{}}},"schemaLedgers":[],"compactedLedger":{"ledgerId":-1,"entries":-1,"size":-1,"offloaded":false,"underReplicated":false}}}}]
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:629)
at org.testng.Assert.assertEquals(Assert.java:639)
at org.apache.pulsar.broker.admin.AdminApiTest.testGetPartitionedStatsInternal(AdminApiTest.java:1198)
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)
```
--
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] lhotari commented on issue #11704: Flaky-test: AdminApiTest.testGetPartitionedStatsInternal
Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #11704:
URL: https://github.com/apache/pulsar/issues/11704#issuecomment-1006390143
the diff of the above assertion error:
```
< "ledgers": [],
---
> "ledgers": [
> {
> "ledgerId": 3,
> "entries": 0,
> "size": 0,
> "offloaded": false,
> "underReplicated": false
> }
> ],
```
--
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] shibd commented on issue #11704: Flaky-test: AdminApiTest.testGetPartitionedStatsInternal
Posted by GitBox <gi...@apache.org>.
shibd commented on issue #11704:
URL: https://github.com/apache/pulsar/issues/11704#issuecomment-1006665319
It's because of the wrong use of `CompletableFuture`, I submited pr, please take a look, thanks.
--
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 commented on issue #11704: Flaky-test: AdminApiTest.testGetPartitionedStatsInternal
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11704:
URL: https://github.com/apache/pulsar/issues/11704#issuecomment-1058887081
The issue had no activity for 30 days, mark with Stale label.
--
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