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

SSTableReaderTest#testOpeningSSTable fails on macOS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 3.0.17, 3.11.3, 4.0, 4.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      I ran into an issue with SSTableReaderTest#testOpeningSSTable test failure on macOS. The reason for failure seems that on macOS, the file modification timestamps are at a second granularity (See: https://stackoverflow.com/questions/18403588/how-to-return-millisecond-information-for-file-access-on-mac-os-x-in-java and https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#HFSPlusDates). The fix is simple - bumping up the sleep time to 1 second instead of 10ms.

          [junit] ------------- ---------------- ---------------
          [junit] Testcase: testOpeningSSTable(org.apache.cassandra.io.sstable.SSTableReaderTest):	FAILED
          [junit] Bloomfilter was not recreated
          [junit] junit.framework.AssertionFailedError: Bloomfilter was not recreated
          [junit] 	at org.apache.cassandra.io.sstable.SSTableReaderTest.testOpeningSSTable(SSTableReaderTest.java:421)
          [junit]
          [junit]
          [junit] Test org.apache.cassandra.io.sstable.SSTableReaderTest FAILED
      

      Related issue: CASSANDRA-11163

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                djoshi Dinesh Joshi
                Reporter:
                djoshi Dinesh Joshi
                Authors:
                Dinesh Joshi
                Reviewers:
                Chris Lohfink
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: