Skip to content

[test] NPE of StringSchema for branch-2.10 #16000

Closed as not planned
Closed as not planned

Description

@codelipenghui

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

  1. added
    type/bug
    on Jun 10, 2022
  2. changed the title [-][test] [][/-] [+][test] NPE of StringSchema for branch-2.10[/+] on Jun 10, 2022
  3. added and removed
    type/bug
    on Jun 10, 2022
  4. codelipenghui commented on Jun 10, 2022

    @codelipenghui
    ContributorAuthor

    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

  5. linked a pull request that will close this issueFix failed tests for branch-2.10 #15995on Jun 10, 2022
  6. eolivelli commented on Jun 10, 2022

    @eolivelli
    Contributor

    @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

  7. codelipenghui commented on Jun 10, 2022

    @codelipenghui
    ContributorAuthor

    Sorry @eolivelli

    I'm still testing. It's not a JDK issue but related to reuseFork. I have disabled the reuseFork in PR #15995, the test gets passed. Looks like the reuseFork lead 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.

  8. added a commit that references this issue on Jun 10, 2022
    0b7bacc
  9. added a commit that references this issue on Jun 13, 2022
    1cc0024
  10. github-actions commented on Jul 11, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

  11. merlimat commented on Oct 24, 2026

    @merlimat
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions