[
https://issues.apache.org/jira/browse/CASSANDRA-14387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dinesh Joshi updated CASSANDRA-14387:
-------------------------------------
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.
{noformat}
[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
{noformat}
Related issue: CASSANDRA-11163
was:
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.
{noformat}
[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
{noformat}
> SSTableReaderTest#testOpeningSSTable fails on macOS
> ---------------------------------------------------
>
> Key: CASSANDRA-14387
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14387
> Project: Cassandra
> Issue Type: Bug
> Reporter: Dinesh Joshi
> Assignee: Dinesh Joshi
> Priority: Minor
>
> 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.
> {noformat}
> [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
> {noformat}
> Related issue: CASSANDRA-11163
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]