Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.1.0
-
Fix Version/s: None
-
Component/s: Morphlines Module
-
Labels:None
Description
Running this:
~/workspace/kite/kite-morphlines/kite-morphlines-solr-cell$ mvn -Dtests.locale=hi_IN -Dtest=SolrCellMorphlineTest test
produces this:
<failure message="key:ignored_creation_date expected:<[2007-10-01T16:13:56Z]> but was:<[२००à¥-१०-०१T१६:१३:५६Z]>" type="java.lang.AssertionError"><![CDATA[java.lang.AssertionError: key:ignored_creation_date expected:<[2007-10-01T16:13:56Z]> but was:<[२००à¥-१०-०१T१६:१३:५६Z]> at __randomizedtesting.SeedInfo.seed([5FDACF9C0421FA40:D45A747C03D769BE]:0) at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.kitesdk.morphline.solr.AbstractSolrMorphlineTest.testDocumentTypesInternal(AbstractSolrMorphlineTest.java:168) at org.kitesdk.morphline.solrcell.SolrCellMorphlineTest.testSolrCellDocumentTypes2(SolrCellMorphlineTest.java:239) ]]></failure>
The problem is apparently that the version of tika that kite uses doesn't deal with the date correctly. There's been some work in solr to upgrade tika, which seems to fix the issue, but which causes other problems: https://issues.apache.org/jira/browse/SOLR-6489. I'm also not sure of the compatibility requirements of tika and kite.
I have a patch that just skips the test if the locale uses non-Arabic digits, I'll submit a pull request for that.