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

Unittest failed: org.apache.cassandra.utils.BitSetTest.compareBitSets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • Legacy/Testing
    • Low

    Description

          [junit] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.822 sec
          [junit]
          [junit] Testcase: compareBitSets(org.apache.cassandra.utils.BitSetTest):    Caused an ERROR
          [junit] java.io.FileNotFoundException: /usr/share/dict/words (No such file or directory)
          [junit] java.lang.RuntimeException: java.io.FileNotFoundException: /usr/share/dict/words (No such file or directory)
          [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 (No such file or directory)
          [junit]     at java.io.FileInputStream.open0(Native Method)
          [junit]     at java.io.FileInputStream.open(FileInputStream.java:195)
          [junit]     at java.io.FileInputStream.<init>(FileInputStream.java:138)
          [junit]     at java.io.FileInputStream.<init>(FileInputStream.java:93)
          [junit]     at org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:135)
          [junit]
          [junit]
          [junit] Test org.apache.cassandra.utils.BitSetTest FAILED
      

      Works fine on my mac but failed on some linux hosts which do not have /usr/share/dict/words. It's the same issue as CASSANDRA-7389, should we backport that?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jay.zhuang Jay Zhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: