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

Alex Petrov edited comment on CASSANDRA-13151 at 4/4/17 2:23 PM:
-----------------------------------------------------------------

Input reader charset wasn't being set correctly. 

Steps to reproduce: 

{code}
LC_ALL=ru_RU ant test -Dtest.name=StandardAnalyzerTest
{code}

And a trivial patch:

|[trunk|https://github.com/apache/cassandra/compare/trunk...ifesdjeen:13151-trunk]|[testall|http://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-13151-trunk-testall/]|[dtest|http://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-13151-trunk-dtest/]|


was (Author: ifesdjeen):
Steps to reproduce: 

{code}
LC_ALL=ru_RU ant test -Dtest.name=StandardAnalyzerTest
{code}

And a trivial patch:

|[trunk|https://github.com/apache/cassandra/compare/trunk...ifesdjeen:13151-trunk]|[testall|http://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-13151-trunk-testall/]|[dtest|http://cassci.datastax.com/view/Dev/view/ifesdjeen/job/ifesdjeen-13151-trunk-dtest/]|

> Unicode unittest fail
> ---------------------
>
>                 Key: CASSANDRA-13151
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13151
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jay Zhuang
>            Assignee: Alex Petrov
>
> Following unittests are failed in 3.11 and trunk(4.0) branch
> {noformat}
> SASIIndexTest.testUnicodeSupport
> StandardAnalyzerTest.testTokenizationJaJp1
> StandardAnalyzerTest.testTokenizationJaJp2
> StandardAnalyzerTest.testTokenizationRuRu1
> StandardAnalyzerTest.testTokenizationZnTw1
> {noformat}
> 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
> {noformat}
> $ 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)
> {noformat}
> {noformat}
> $ 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to