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/03/01 13:59:43 UTC
[GitHub] [pulsar] lhotari opened a new issue #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
lhotari opened a new issue #14516:
URL: https://github.com/apache/pulsar/issues/14516
<!---
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.
-->
NamespacesTest.testDeleteNamespaceWithBundles is flaky. It fails sporadically.
[example failure](https://github.com/apache/pulsar/runs/5375478775?check_suite_focus=true#step:11:269)
```
Error: testDeleteNamespaceWithBundles(org.apache.pulsar.broker.admin.NamespacesTest) Time elapsed: 5.182 s <<< FAILURE!
Wanted but not invoked:
asyncResponse.resume(<Capturing argument>);
-> at org.apache.pulsar.broker.admin.NamespacesTest.testDeleteNamespaceWithBundles(NamespacesTest.java:853)
However, there was exactly 1 interaction with this mock:
asyncResponse.resume(
org.apache.pulsar.broker.web.RestException: Failed to find ownership for ServiceUnit:my-tenant/use/test-delete-namespace-with-bundles/0x00000000_0x80000000
);
-> at org.apache.pulsar.broker.admin.AdminResource.resumeAsyncResponseExceptionally(AdminResource.java:761)
at org.apache.pulsar.broker.admin.NamespacesTest.testDeleteNamespaceWithBundles(NamespacesTest.java:853)
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 #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1056752530
another failure: https://github.com/apache/pulsar/runs/5389017187?check_suite_focus=true#step:11:270
@Technoboy- it seems that this is very flaky since it appears very often.
--
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] Technoboy- commented on issue #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1057951872
> +1 https://github.com/apache/pulsar/runs/5388581170?check_suite_focus=true#step:11:1759
Do you have time to help take a look at 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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] shibd commented on issue #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1056981112
+1 https://github.com/apache/pulsar/runs/5388581170?check_suite_focus=true#step:11:1759
--
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] Technoboy- commented on issue #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1055568949
> This flaky test might be related to #14215 . @Technoboy- please check
Ok.
--
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 #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1055530601
This flaky test might be related to #14215 . @Technoboy- please check
--
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 closed issue #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
lhotari closed issue #14516:
URL: https://github.com/apache/pulsar/issues/14516
--
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 #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1057971105
> Do you have time to help take a look at this ?
Ok, I'll try to fix it.
--
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 #14516: Flaky-test: NamespacesTest.testDeleteNamespaceWithBundles
Posted by GitBox <gi...@apache.org>.
shibd commented on issue #14516:
URL: https://github.com/apache/pulsar/issues/14516#issuecomment-1058792886
Sorry, I didn't reproduce for local. I looked at the test code. It should be that the following code sequence is wrong.
Before delete a namespace, We should mock all done. 847 lines of code should be executed after 851 lines of code.
https://github.com/apache/pulsar/blob/4f1e39b6921ea401b8c27f17a041d06d85f8abf8/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java#L847-L851
Otherwise, a null pointer may happen during verification `isServiceUnitOwned`
https://github.com/apache/pulsar/blob/4f1e39b6921ea401b8c27f17a041d06d85f8abf8/pulsar-broker/src/main/java/org/apache/pulsar/broker/web/PulsarWebResource.java#L584
Final throw RestException
https://github.com/apache/pulsar/blob/4f1e39b6921ea401b8c27f17a041d06d85f8abf8/pulsar-broker/src/main/java/org/apache/pulsar/broker/web/PulsarWebResource.java#L608-L610
@Jason918 PTAL
--
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