You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ala' Alkhaldi (JIRA)" <ji...@apache.org> on 2014/06/13 22:05:02 UTC

[jira] [Commented] (CASSANDRA-7389) BitSetTest fails on Windows

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

Ala' Alkhaldi commented on CASSANDRA-7389:
------------------------------------------

BitSetTest.compareBitSets uses KeyGenerator.WordGenerator to fill the BloomFilters. KeyGenerator.WordGenerator relies on linux  \usr\share\dict\words file for retrieving the word list which is not available in Windows.
Since the strings inserted to the bloomFilters do not need to be English words for the test to work, I replaced the KeyGenerator.WordGenerator with KeyGenerator.RandomStringGenerator. Please check the attached patch.



> BitSetTest fails on Windows
> ---------------------------
>
>                 Key: CASSANDRA-7389
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7389
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Joshua McKenzie
>            Assignee: Ala' Alkhaldi
>            Priority: Minor
>              Labels: Windows
>             Fix For: 3.0
>
>
>     [junit] Testcase: compareBitSets(org.apache.cassandra.utils.BitSetTest):    Caused an ERROR
>     [junit] java.io.FileNotFoundException: \usr\share\dict\words (The system cannot find the path specified)
>     [junit] java.lang.RuntimeException: java.io.FileNotFoundException: \usr\share\dict\words (The system cannot find the path specified)
>     [junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:137)
>     [junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.<init>(KeyGenerator.java:126)
>     [junit]     at org.apache.cassandra.utils.BitSetTest.compareBitSets(BitSetTest.java:50)
>     [junit] Caused by: java.io.FileNotFoundException: \usr\share\dict\words (The system cannot find the path specified)
>     [junit]     at java.io.FileInputStream.open(Native Method)
>     [junit]     at java.io.FileInputStream.<init>(FileInputStream.java:146)
>     [junit]     at java.io.FileInputStream.<init>(FileInputStream.java:101)
>     [junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:135)



--
This message was sent by Atlassian JIRA
(v6.2#6252)