The problem is in Argparser4J:
http://grepcode.com/file/repo1.maven.org/maven2/net.sourceforge.argparse4j/argparse4j/0.3.2/net/sourceforge/argparse4j/helper/TextHelper.java#197
The code does the following:
String fmt = String.format("%%%ds%%s\n", indentWidth);
writer.format(fmt,....)
So it uses the first String.format (without locale) to produce the format
string of the second one. The %d will be the indentWidth, so the code is
right-aligned. But the indent-with pattern is formatted using default locale,
so the first line produces something like the following code:
"%१s%s" instead of "%1s%s"
This will fail format parsing in the second. In my opinion the whole code is a
bug by itself. Creating a format pattern with another format pattern is slow
and as shown: buggy!
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]
> -----Original Message-----
> From: Uwe Schindler [mailto:[email protected]]
> Sent: Tuesday, December 10, 2013 4:15 PM
> To: [email protected]
> Subject: RE: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.7.0_60-ea-b01) -
> Build # 8638 - Failure!
>
> Locale problem with the argument parser.
>
> The sperm-like symbol (१) is DEVANAGARI DIGIT ONE (U+0967). It looks like
> while testing some foreign (non-lucene) code converts the digit "1" to this
> small creature maybe through the use of default locale. As the Lucene code
> is forbidden-api checked, this seems to be a bug somewhere else - the stack
> trace shows the bug: net.sourceforge.argparse4j.helper.TextHelper calls
> String.format without Locale!).
>
> I will look into the test and try to find out what happens.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
>
>
> > -----Original Message-----
> > From: Policeman Jenkins Server [mailto:[email protected]]
> > Sent: Tuesday, December 10, 2013 3:51 PM
> > To: [email protected]
> > Subject: [JENKINS] Lucene-Solr-trunk-Linux (64bit/jdk1.7.0_60-ea-b01)
> > - Build # 8638 - Failure!
> >
> > Build: http://jenkins.thetaphi.de/job/Lucene-Solr-trunk-Linux/8638/
> > Java: 64bit/jdk1.7.0_60-ea-b01 -XX:-UseCompressedOops -
> > XX:+UseConcMarkSweepGC
> >
> > 1 tests failed.
> > REGRESSION:
> >
> org.apache.solr.hadoop.MapReduceIndexerToolArgumentParserTest.testAr
> > gsParserHelp
> >
> > Error Message:
> > Conversion = '१'
> >
> > Stack Trace:
> > java.util.UnknownFormatConversionException: Conversion = '१'
> > at
> >
> __randomizedtesting.SeedInfo.seed([50CF69F490D54906:CC1DC383D7BB254
> > B]:0)
> > at java.util.Formatter.checkText(Formatter.java:2547)
> > at java.util.Formatter.parse(Formatter.java:2523)
> > at java.util.Formatter.format(Formatter.java:2469)
> > at java.io.PrintWriter.format(PrintWriter.java:905)
> > at
> > net.sourceforge.argparse4j.helper.TextHelper.printHelp(TextHelper.java
> > :20
> > 6)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentImpl.printHelp(ArgumentImpl.
> > java:247)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.printArgumentHe
> > l
> > p(ArgumentParserImpl.java:253)
> > at
> > net.sourceforge.argparse4j.internal.ArgumentParserImpl.printHelp(Argum
> > e
> > ntParserImpl.java:279)
> > at
> >
> org.apache.solr.hadoop.MapReduceIndexerTool$MyArgumentParser$1.run(
> > MapReduceIndexerTool.java:187)
> > at
> > net.sourceforge.argparse4j.internal.ArgumentImpl.run(ArgumentImpl.java
> > :4
> > 25)
> > at
> > net.sourceforge.argparse4j.internal.ArgumentParserImpl.processArg(Argu
> > m
> > entParserImpl.java:913)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:810)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:683)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:580)
> > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:573)
> > at
> >
> org.apache.solr.hadoop.MapReduceIndexerTool$MyArgumentParser.parse
> > Args(MapReduceIndexerTool.java:505)
> > at
> >
> org.apache.solr.hadoop.MapReduceIndexerToolArgumentParserTest.testAr
> > gsParserHelp(MapReduceIndexerToolArgumentParserTest.java:194)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> > ava:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(Randomize
> > dRunner.java:1559)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(Rando
> > mizedRunner.java:79)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(Rando
> > mizedRunner.java:737)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(Rando
> > mizedRunner.java:773)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(Rando
> > mizedRunner.java:787)
> > at
> >
> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRul
> > e
> > SetupTeardownChained.java:50)
> > at
> > org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFie
> > ldCa
> > cheSanity.java:51)
> > at
> > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBefo
> > reA
> > fterRule.java:46)
> > at
> > com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule
> > $1
> > .evaluate(SystemPropertiesInvariantRule.java:55)
> > at
> >
> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleTh
> > readAndTestName.java:49)
> > at
> > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestR
> > ule
> > IgnoreAfterMaxFailures.java:70)
> > at
> > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFail
> > ure
> > .java:48)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> > run(ThreadLeakControl.java:358)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTas
> > k
> > (ThreadLeakControl.java:782)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(Thread
> > L
> > eakControl.java:442)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(Ran
> > domizedRunner.java:746)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(Rando
> > mizedRunner.java:648)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(Rando
> > mizedRunner.java:682)
> > at
> >
> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(Rando
> > mizedRunner.java:693)
> > at
> > org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBefo
> > reA
> > fterRule.java:46)
> > at
> > org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStore
> > Cl
> > assName.java:42)
> > at
> > com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule
> > $1
> > .evaluate(SystemPropertiesInvariantRule.java:55)
> > at
> >
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> > at
> >
> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMet
> > hodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> > org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleA
> > ss
> > ertionsRequired.java:43)
> > at
> > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFail
> > ure
> > .java:48)
> > at
> > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestR
> > ule
> > IgnoreAfterMaxFailures.java:70)
> > at
> > org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgn
> > ore
> > TestSuites.java:55)
> > at
> > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(Sta
> > t
> > ementAdapter.java:36)
> > at
> >
> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.
> > run(ThreadLeakControl.java:358)
> > at java.lang.Thread.run(Thread.java:744)
> >
> >
> >
> >
> > Build Log:
> > [...truncated 16960 lines...]
> > [junit4] Suite:
> > org.apache.solr.hadoop.MapReduceIndexerToolArgumentParserTest
> > [junit4] 1> 1868 [TEST-
> >
> MapReduceIndexerToolArgumentParserTest.testArgsParserIntOutOfRange-
> > seed#[50CF69F490D54906]] WARN
> > org.apache.hadoop.util.NativeCodeLoader - Unable to load
> > native-hadoop library for your platform... using builtin-java classes where
> applicable
> > [junit4] 2> NOTE: reproduce with: ant test -
> > Dtestcase=MapReduceIndexerToolArgumentParserTest -
> > Dtests.method=testArgsParserHelp -Dtests.seed=50CF69F490D54906 -
> > Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=hi_IN -
> > Dtests.timezone=Atlantic/Cape_Verde -Dtests.file.encoding=US-ASCII
> > [junit4] ERROR 0.10s J1 |
> > MapReduceIndexerToolArgumentParserTest.testArgsParserHelp <<<
> > [junit4] > Throwable #1: java.util.UnknownFormatConversionException:
> > Conversion = '१'
> > [junit4] > at
> >
> __randomizedtesting.SeedInfo.seed([50CF69F490D54906:CC1DC383D7BB254
> > B]:0)
> > [junit4] > at java.util.Formatter.checkText(Formatter.java:2547)
> > [junit4] > at java.util.Formatter.parse(Formatter.java:2523)
> > [junit4] > at java.util.Formatter.format(Formatter.java:2469)
> > [junit4] > at java.io.PrintWriter.format(PrintWriter.java:905)
> > [junit4] > at
> > net.sourceforge.argparse4j.helper.TextHelper.printHelp(TextHelper.java
> > :20
> > 6)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentImpl.printHelp(ArgumentImpl.
> > java:247)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.printArgumentHe
> > l
> > p(ArgumentParserImpl.java:253)
> > [junit4] > at
> > net.sourceforge.argparse4j.internal.ArgumentParserImpl.printHelp(Argum
> > e
> > ntParserImpl.java:279)
> > [junit4] > at
> >
> org.apache.solr.hadoop.MapReduceIndexerTool$MyArgumentParser$1.run(
> > MapReduceIndexerTool.java:187)
> > [junit4] > at
> > net.sourceforge.argparse4j.internal.ArgumentImpl.run(ArgumentImpl.java
> > :4
> > 25)
> > [junit4] > at
> > net.sourceforge.argparse4j.internal.ArgumentParserImpl.processArg(Argu
> > m
> > entParserImpl.java:913)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:810)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:683)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:580)
> > [junit4] > at
> >
> net.sourceforge.argparse4j.internal.ArgumentParserImpl.parseArgs(Argum
> > e
> > ntParserImpl.java:573)
> > [junit4] > at
> >
> org.apache.solr.hadoop.MapReduceIndexerTool$MyArgumentParser.parse
> > Args(MapReduceIndexerTool.java:505)
> > [junit4] > at
> >
> org.apache.solr.hadoop.MapReduceIndexerToolArgumentParserTest.testAr
> > gsParserHelp(MapReduceIndexerToolArgumentParserTest.java:194)
> > [junit4] > at java.lang.Thread.run(Thread.java:744)
> > [junit4] 2> NOTE: test params are: codec=Lucene40,
> sim=DefaultSimilarity,
> > locale=hi_IN, timezone=Atlantic/Cape_Verde
> > [junit4] 2> NOTE: Linux 3.8.0-34-generic amd64/Oracle Corporation
> > 1.7.0_60-ea (64-bit)/cpus=8,threads=1,free=96024864,total=126418944
> > [junit4] 2> NOTE: All tests run in this JVM: [MorphlineReducerTest,
> > MorphlineBasicMiniMRTest, MapReduceIndexerToolArgumentParserTest]
> > [junit4] Completed on J1 in 4.42s, 24 tests, 1 error <<< FAILURES!
> >
> > [...truncated 19 lines...]
> > BUILD FAILED
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:420: The
> > following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:400: The
> > following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/build.xml:39: The
> > following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/extra-
> targets.xml:37:
> > The following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/build.xml:209:
> > The following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-
> > build.xml:441: The following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/solr/common-
> > build.xml:491: The following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-
> > build.xml:1304: The following error occurred while executing this line:
> > /mnt/ssd/jenkins/workspace/Lucene-Solr-trunk-Linux/lucene/common-
> > build.xml:937: There were test failures: 7 suites, 35 tests, 1 error,
> > 5 ignored
> >
> > Total time: 49 minutes 28 seconds
> > Build step 'Invoke Ant' marked build as failure Description set: Java:
> > 64bit/jdk1.7.0_60-ea-b01 -XX:-UseCompressedOops -
> > XX:+UseConcMarkSweepGC Archiving artifacts Recording test results
> > Email was triggered for: Failure Sending email for trigger: Failure
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For additional
> commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]