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

Unicode unittest fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • Normal

    Description

      Following unittests are failed in 3.11 and trunk(4.0) branch

      SASIIndexTest.testUnicodeSupport
      StandardAnalyzerTest.testTokenizationJaJp1
      StandardAnalyzerTest.testTokenizationJaJp2
      StandardAnalyzerTest.testTokenizationRuRu1
      StandardAnalyzerTest.testTokenizationZnTw1
      

      It works fine on my local mac, but not linux server. I guess it's related to Unicode setting. Does anyone have any idea on that? (could it be related to CASSANDRA-11077, CASSANDRA-11431?)

      Here are the failure details

      $ ant testsome -Dtest.name=org.apache.cassandra.index.sasi.SASIIndexTest -Dtest.methods=testUnicodeSupport
      ...
          [junit] Testcase: testUnicodeSupport(org.apache.cassandra.index.sasi.SASIIndexTest):        FAILED
          [junit] []
          [junit] junit.framework.AssertionFailedError: []
          [junit]     at org.apache.cassandra.index.sasi.SASIIndexTest.testUnicodeSupport(SASIIndexTest.java:1159)
          [junit]     at org.apache.cassandra.index.sasi.SASIIndexTest.testUnicodeSupport(SASIIndexTest.java:1122)
      
      $ ant test -Dtest.name=StandardAnalyzerTest
      ...
          [junit] Testcase: testTokenizationJaJp1(org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest):     FAILED
          [junit] expected:<210> but was:<0>
          [junit] junit.framework.AssertionFailedError: expected:<210> but was:<0>
          [junit]     at org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest.testTokenizationJaJp1(StandardAnalyzerTest.java:85)
          [junit]
          [junit]
          [junit] Testcase: testTokenizationJaJp2(org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest):     FAILED
          [junit] expected:<57> but was:<9>
          [junit] junit.framework.AssertionFailedError: expected:<57> but was:<9>
          [junit]     at org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest.testTokenizationJaJp2(StandardAnalyzerTest.java:104)
          [junit]
          [junit]
          [junit] Testcase: testTokenizationRuRu1(org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest):     FAILED
          [junit] expected:<456> but was:<0>
          [junit] junit.framework.AssertionFailedError: expected:<456> but was:<0>
          [junit]     at org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest.testTokenizationRuRu1(StandardAnalyzerTest.java:120)
          [junit]
          [junit]
          [junit] Testcase: testTokenizationZnTw1(org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest):     FAILED
          [junit] expected:<963> but was:<0>
          [junit] junit.framework.AssertionFailedError: expected:<963> but was:<0>
          [junit]     at org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest.testTokenizationZnTw1(StandardAnalyzerTest.java:136)
          [junit]
          [junit]
          [junit] Test org.apache.cassandra.index.sasi.analyzer.StandardAnalyzerTest FAILED
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: