Repository navigation
Description
PulsarFunctionsJavaThreadTest.testJavaLoggingFunction is flaky. It fails sporadically.
2022-04-29T10:26:05.4063041Z [ERROR] testJavaLoggingFunction(org.apache.pulsar.tests.integration.functions.java.PulsarFunctionsJavaThreadTest) Time elapsed: 50.242 s <<< FAILURE!
2022-04-29T10:26:05.4064216Z java.lang.NullPointerException: Cannot invoke "org.apache.pulsar.client.api.Message.getValue()" because "msg" is null
2022-04-29T10:26:05.4131524Z at org.apache.pulsar.tests.integration.functions.PulsarFunctionsTest.publishAndConsumeMessages(PulsarFunctionsTest.java:1583)
2022-04-29T10:26:05.4132844Z at org.apache.pulsar.tests.integration.functions.PulsarFunctionsTest.testLoggingFunction(PulsarFunctionsTest.java:1506)
2022-04-29T10:26:05.4133941Z at org.apache.pulsar.tests.integration.functions.java.PulsarFunctionsJavaTest.testJavaLoggingFunction(PulsarFunctionsJavaTest.java:111)
2022-04-29T10:26:05.4135136Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-04-29T10:26:05.4135817Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2022-04-29T10:26:05.4136564Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2022-04-29T10:26:05.4137167Z at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2022-04-29T10:26:05.4137752Z at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
2022-04-29T10:26:05.4138406Z at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
2022-04-29T10:26:05.4139003Z at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
2022-04-29T10:26:05.4139577Z at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
2022-04-29T10:26:05.4140122Z at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-04-29T10:26:05.4140702Z at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2022-04-29T10:26:05.4141652Z at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2022-04-29T10:26:05.4142141Z at java.base/java.lang.Thread.run(Thread.java:833)
Activity
shibd commentedon Apr 29, 2022
Please assign to me. Thanks.
lhotari commentedon Apr 29, 2022
@shibd I would recommend investigating this with a "Personal CI" where you work on a fix in your own fork before create a PR. You can open PRs to your own fork of apache/pulsar to run GitHub Actions workflows in your own fork.
There are some instructions in https://lists.apache.org/thread/1ofdbd9j1hhj4c0rw3o7vv8y6rbsxrp0 about using "Personal CI".
The additional benefit of the "Personal CI" is that you get ssh access to the build VMs when the build is running. That is handled by this logic in the pulsar-ci.yaml GitHub Actions workflow file:
pulsar/.github/workflows/pulsar-ci.yaml
Lines 77 to 82 in 1682884
and inline composite action implementation: https://github.com/apache/pulsar/blob/master/.github/actions/ssh-access/action.yml
The ssh access is secured with the ssh key registered in Github. for example, your public keys are https://github.com/shibd.keys . That's the key that will have access to ssh when you run builds in your own fork.
[-]Flaky-test: PulsarFunctionsTest.publishAndConsumeMessages[/-][+]Flaky-test: PulsarFunctionsJavaThreadTest.testJavaLoggingFunction[/+]shibd commentedon May 4, 2022
I did not reproduce the problem locally env. I suspect that it is caused by the relatively small resource constraints in the CI environment. I unassigned this issue first.
nicoloboschi commentedon May 30, 2022
another failure: https://github.com/apache/pulsar/runs/6625554986?check_suite_focus=true
lhotari commentedon Jun 2, 2022
This is currently the most flaky test in our CI. There were 32 failues in the last 7 days. Detailed report
RobertIndie commentedon Jun 6, 2022
Another failure: https://github.com/apache/pulsar/runs/6750702609?check_suite_focus=true
github-actions commentedon Jul 7, 2022
The issue had no activity for 30 days, mark with Stale label.
shibd commentedon Jul 15, 2022
Another failure: https://github.com/apache/pulsar/runs/7353151617?check_suite_focus=true
shibd commentedon Jul 19, 2022
Another failure: https://github.com/apache/pulsar/runs/7406620020?check_suite_focus=true
codelipenghui commentedon Jul 25, 2022
Another failure https://github.com/apache/pulsar/runs/7492594841?check_suite_focus=true
shibd commentedon Jul 27, 2022
After #16773, When the message is null, will print input and output stats.
This ci: https://github.com/apache/pulsar/runs/7528475589?check_suite_focus=true
It looks like the output message count is only 1.
github-actions commentedon Aug 28, 2022
The issue had no activity for 30 days, mark with Stale label.
lhotari commentedon Aug 29, 2022
this remains very flaky
at https://github.com/apache/pulsar/runs/8066475125?check_suite_focus=true#step:11:19252
Fix flaky testJavaLoggingFunction
Fix flaky testJavaLoggingFunction