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

[utest] tests unable to write system tmp directory

    XMLWordPrintableJSON

    Details

    • Severity:
      Low

      Description

      Some tests are failing from time to time because it cannot write to directory /tmp/:
      https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-trunk-test/lastCompletedBuild/testReport/org.apache.cassandra.streaming.compression/CompressedInputStreamTest/testException/

      java.lang.RuntimeException: java.nio.file.AccessDeniedException: /tmp/na-1-big-Data.db
      	at org.apache.cassandra.io.util.SequentialWriter.openChannel(SequentialWriter.java:119)
      	at org.apache.cassandra.io.util.SequentialWriter.<init>(SequentialWriter.java:152)
      	at org.apache.cassandra.io.util.SequentialWriter.<init>(SequentialWriter.java:141)
      	at org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:82)
      	at org.apache.cassandra.streaming.compression.CompressedInputStreamTest.testCompressedReadWith(CompressedInputStreamTest.java:119)
      	at org.apache.cassandra.streaming.compression.CompressedInputStreamTest.testException(CompressedInputStreamTest.java:78)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.nio.file.AccessDeniedException: /tmp/na-1-big-Data.db
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
      	at java.nio.channels.FileChannel.open(FileChannel.java:287)
      	at java.nio.channels.FileChannel.open(FileChannel.java:335)
      	at org.apache.cassandra.io.util.SequentialWriter.openChannel(SequentialWriter.java:100)
      

      I guess it's because some Jenkins slaves don't have proper permission set. For slave cassandra16, the tests are fine:
      https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-trunk-test/723/testReport/junit/org.apache.cassandra.streaming.compression/CompressedInputStreamTest/testException/history/

        Attachments

          Activity

            People

            • Assignee:
              jay.zhuang Jay Zhuang
              Reporter:
              jay.zhuang Jay Zhuang
              Authors:
              Jay Zhuang
              Reviewers:
              Marcus Eriksson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: