Repository navigation
Closed as not planned
Description
Describe the bug
https://github.com/apache/pulsar/runs/6812506434?check_suite_focus=true
Error: Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 7.561 s <<< FAILURE! - in org.apache.pulsar.broker.service.BrokerServiceBundlesCacheInvalidationTest
Error: testRecreateNamespace(org.apache.pulsar.broker.service.BrokerServiceBundlesCacheInvalidationTest) Time elapsed: 0.2 s <<< FAILURE!
java.lang.NullPointerException
at java.base/java.lang.String.getBytes(String.java:963)
at org.apache.pulsar.client.impl.schema.StringSchema.encode(StringSchema.java:98)
at org.apache.pulsar.client.impl.schema.StringSchema.encode(StringSchema.java:34)
at org.apache.pulsar.client.impl.TypedMessageBuilderImpl.value(TypedMessageBuilderImpl.java:173)
at org.apache.pulsar.client.impl.ProducerBase.send(ProducerBase.java:62)
at org.apache.pulsar.broker.service.BrokerServiceBundlesCacheInvalidationTest.testRecreateNamespace(BrokerServiceBundlesCacheInvalidationTest.java:57)
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)
To Reproduce
Always fail on CI but it's not able to reproduce on my laptop
Activity
[-][test] [][/-][+][test] NPE of StringSchema for branch-2.10[/+]codelipenghui commentedon Jun 10, 2022
Looks like temurin has a new release jdk-11.0.15+10 which introduced the issue. After rollback to
[jdk-11.0.14+101], the failed test gets passed.https://github.com/apache/pulsar/runs/6826520926?check_suite_focus=true
eolivelli commentedon Jun 10, 2022
@codelipenghui @nicoloboschi is there any link to a OpenJDK issue ?
I can create tickets on OpenJDK JIRA, if it is a new issue we can report it but we need more context
codelipenghui commentedon Jun 10, 2022
Sorry @eolivelli
I'm still testing. It's not a JDK issue but related to
reuseFork. I have disabled thereuseFork in PR #15995, the test gets passed. Looks like thereuseForklead some static code doesn't work.The test was just very flaky. After change to
jdk-11.0.14+101, the test just passed, but just lucky.Fix failed tests for branch-2.10 (#15995)
Fix failed tests for branch-2.10 (apache#15995)
github-actions commentedon Jul 11, 2022
The issue had no activity for 30 days, mark with Stale label.
merlimat commentedon Oct 24, 2026
Thanks @codelipenghui for the report. This was reported on a Pulsar release before 3.0, which is no longer supported; the supported releases are 4.0.x, 4.2.x and 5.0.x. Much of the code involved has changed since, and the problem hasn't been confirmed on a current release, so I'm closing it as part of cleaning up old reports. If you still see it on a supported release, please open a new issue with the version and steps to reproduce, and link this one.