Skip to content

Flaky-test: MetadataCacheTest.insertionDeletion #14110

Closed

Description

@lhotari

Flaky-test: org.apache.pulsar.metadata.MetadataCacheTest.insertionDeletion
Number of failures: 5

org.apache.pulsar.metadata.MetadataCacheTest is flaky. The insertionDeletion test method fails sporadically.

java.lang.AssertionError: expected [Optional[MetadataCacheTest.MyClass(a=a, b=2)]] but found [Optional[MetadataCacheTest.MyClass(a=a, b=1)]]
	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:617)
	at org.apache.pulsar.metadata.MetadataCacheTest.insertionDeletion(MetadataCacheTest.java:271)

Usage tip: To enable automatic navigation to failure message, open the following links with CTRL/CMD-click.
example failure 2022-02-02T13:10:02.6320957Z
example failure 2022-02-02T02:27:09.5294661Z
example failure 2022-01-28T13:28:12.7298674Z
example failure 2022-01-27T18:29:36.8915345Z
example failure 2022-01-27T10:57:28.1933754Z

Full exception stacktrace
java.lang.AssertionError: expected [Optional[MetadataCacheTest.MyClass(a=a, b=2)]] but found [Optional[MetadataCacheTest.MyClass(a=a, b=1)]]
	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:617)
	at org.apache.pulsar.metadata.MetadataCacheTest.insertionDeletion(MetadataCacheTest.java:271)
	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)

Activity

  1. gaozhangmin commented on Feb 10, 2022

    @gaozhangmin
    Contributor

    #14096 #14219 and this all related with readModifyUpdateOrCreate and readModifyUpdate
    @lhotari

  2. Jason918 commented on Feb 13, 2022

    @Jason918
    Contributor

    @lhotari Do you know how to download the surefile-artifacts of these CI workflow? From the summary it seems that it's missing but the log shows it's uploaded successfully.

    image

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