Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17515

Fix flaky RestoreIntegrationTest.shouldInvokeUserDefinedGlobalStateRestoreListener

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • streams, unit tests
    • None

    Description

      Stacktrace
      java.nio.file.DirectoryNotEmptyException: /tmp/shouldInvokeUserDefinedGlobalStateRestoreListenerH0u0n9foRY_peZu4FqeGHQ10111145955704739924-ks1/shouldInvokeUserDefinedGlobalStateRestoreListenerH0u0n9foRY_peZu4FqeGHQ/0_0
      	at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:289)
      	at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:109)
      	at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
      	at org.apache.kafka.common.utils.Utils$1.postVisitDirectory(Utils.java:898)
      	at org.apache.kafka.common.utils.Utils$1.postVisitDirectory(Utils.java:870)
      	at java.base/java.nio.file.Files.walkFileTree(Files.java:2803)
      	at java.base/java.nio.file.Files.walkFileTree(Files.java:2857)
      	at org.apache.kafka.common.utils.Utils.delete(Utils.java:870)
      	at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.purgeLocalStreamsState(IntegrationTestUtils.java:266)
      	at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.purgeLocalStreamsState(IntegrationTestUtils.java:278)
      	at org.apache.kafka.streams.integration.RestoreIntegrationTest.shouldInvokeUserDefinedGlobalStateRestoreListener(RestoreIntegrationTest.java:583)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
      

      Attachments

        Activity

          People

            Yu-Lin Chen Yu-Lin Chen
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: