cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh Joshi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-14387) SSTableReaderTest#testOpeningSSTable fails on macOS
Date Mon, 16 Apr 2018 17:20:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-14387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439744#comment-16439744
] 

Dinesh Joshi commented on CASSANDRA-14387:
------------------------------------------

||trunk||
|[branch|https://github.com/dineshjoshi/cassandra/tree/sstable-junit-failure]|
|[utests &amp; dtests|https://circleci.com/gh/dineshjoshi/workflows/cassandra/tree/sstable-junit-failure]|
||

> 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}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message