Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-17078

Fix failing test: SSTableReaderTest.testPersistentStatistics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0.3, 4.1-alpha1, 4.1
    • Test/unit
    • None

    Description

      JDK8 unit test failure

      See it on CircleCI but not on Jenkins ASF infra right now.

      java.lang.RuntimeException: Failed importing sstables
      	at org.apache.cassandra.db.SSTableImporter.importNewSSTables(SSTableImporter.java:164)
      	at org.apache.cassandra.db.ColumnFamilyStore.loadNewSSTables(ColumnFamilyStore.java:734)
      	at org.apache.cassandra.io.sstable.SSTableReaderTest.clearAndLoad(SSTableReaderTest.java:222)
      	at org.apache.cassandra.io.sstable.SSTableReaderTest.testPersistentStatistics(SSTableReaderTest.java:215)
      Caused by: java.lang.RuntimeException: Failed to rename /tmp/cassandra/build/test/cassandra/data/SSTableReaderTest/Standard1-da581e50380611ecaad41173773221f9/nb-9-big-Digest.crc32 to /tmp/cassandra/build/test/cassandra/data/SSTableReaderTest/Standard1-da581e50380611ecaad41173773221f9/nb-13-big-Digest.crc32
      	at org.apache.cassandra.io.util.PathUtils.rename(PathUtils.java:385)
      	at org.apache.cassandra.io.util.File.move(File.java:227)
      	at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:704)
      	at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:698)
      	at org.apache.cassandra.io.sstable.format.SSTableWriter.rename(SSTableWriter.java:337)
      	at org.apache.cassandra.io.sstable.format.SSTableReader.moveAndOpenSSTable(SSTableReader.java:2339)
      	at org.apache.cassandra.db.SSTableImporter.importNewSSTables(SSTableImporter.java:139)
      Caused by: java.nio.file.NoSuchFileException: /tmp/cassandra/build/test/cassandra/data/SSTableReaderTest/Standard1-da581e50380611ecaad41173773221f9/nb-9-big-Digest.crc32 -> /tmp/cassandra/build/test/cassandra/data/SSTableReaderTest/Standard1-da581e50380611ecaad41173773221f9/nb-13-big-Digest.crc32
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:396)
      	at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262)
      	at java.nio.file.Files.move(Files.java:1395)
      	at org.apache.cassandra.io.util.PathUtils.atomicMoveWithFallback(PathUtils.java:396)
      	at org.apache.cassandra.io.util.PathUtils.rename(PathUtils.java:377)
      

       

       

      Attachments

        Activity

          People

            jmckenzie Josh McKenzie
            jmckenzie Josh McKenzie
            Josh McKenzie
            Aleksei Zotov, Jeremiah Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: