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

Windows: Commitlog access violations on unit tests

    Details

      Description

      We have four unit tests failing on trunk on Windows, all with FileSystemException's related to the SchemaLoader:

      [junit] Test org.apache.cassandra.db.compaction.DateTieredCompactionStrategyTest FAILED
      [junit] Test org.apache.cassandra.cql3.ThriftCompatibilityTest FAILED
      [junit] Test org.apache.cassandra.io.sstable.SSTableRewriterTest FAILED
      [junit] Test org.apache.cassandra.repair.LocalSyncTaskTest FAILED
      

      Example error:

          [junit] Caused by: java.nio.file.FileSystemException: build\test\cassandra\commitlog;0\CommitLog-5-1415908745965.log: The process cannot access the file because it is being used by another process.
          [junit]
          [junit]     at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
          [junit]     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
          [junit]     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
          [junit]     at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
          [junit]     at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
          [junit]     at java.nio.file.Files.delete(Files.java:1079)
          [junit]     at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:125)
      

        Attachments

        1. 8308_v1.txt
          7 kB
          Joshua McKenzie
        2. 8308_v2.txt
          8 kB
          Joshua McKenzie
        3. 8308_v3.txt
          7 kB
          Joshua McKenzie
        4. 8308-post-fix.txt
          2 kB
          Robert Stupp
        5. 8308-post-fix-3.txt
          23 kB
          Robert Stupp

          Activity

            People

            • Assignee:
              JoshuaMcKenzie Joshua McKenzie
              Reporter:
              JoshuaMcKenzie Joshua McKenzie
              Reviewer:
              Benedict
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: