How about this fix?
Index: solr/core/src/java/org/apache/solr/update/UpdateLog.java
===================================================================
--- solr/core/src/java/org/apache/solr/update/UpdateLog.java (revision
1620185)
+++ solr/core/src/java/org/apache/solr/update/UpdateLog.java (working copy)
@@ -24,7 +24,6 @@
import java.io.FileNotFoundException;
import java.io.FilenameFilter;
import java.io.IOException;
-import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
@@ -1272,7 +1271,7 @@
loglog.info(
"log replay status {} active={} starting pos={}
current pos={} current size={} % read={}",
translog, activeLog, recoveryInfo.positionOfStart,
cpos, csize,
- new DecimalFormat("###").format(cpos / (double) csize
* 100));
+ Double.toString(cpos / (double) csize * 100));
}
}
-----
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: Sunday, August 24, 2014 9:47 PM
> To: [email protected]; [email protected]; [email protected]
> Subject: [JENKINS] Lucene-Solr-4.x-Linux (64bit/jdk1.7.0_67) - Build # 10966 -
> Failure!
>
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-4.x-Linux/10966/
> Java: 64bit/jdk1.7.0_67 -XX:-UseCompressedOops -
> XX:+UseConcMarkSweepGC
>
> All tests passed
>
> Build Log:
> [...truncated 32639 lines...]
> -check-forbidden-all:
> [forbidden-apis] Reading bundled API signatures: jdk-unsafe-1.7 [forbidden-
> apis] Reading bundled API signatures: jdk-deprecated-1.7 [forbidden-apis]
> Reading bundled API signatures: commons-io-unsafe-2.3 [forbidden-apis]
> Reading API signatures: /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-
> Linux/lucene/tools/forbiddenApis/base.txt
> [forbidden-apis] Reading API signatures:
> /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-
> Linux/lucene/tools/forbiddenApis/servlet-api.txt
> [forbidden-apis] Loading classes to check...
> [forbidden-apis] Scanning for API signatures and dependencies...
> [forbidden-apis] Forbidden method invocation:
> java.text.DecimalFormat#<init>(java.lang.String) [Uses default locale]
> [forbidden-apis] in org.apache.solr.update.UpdateLog$LogReplayer
> (UpdateLog.java:1272)
> [forbidden-apis] Scanned 2222 (and 1523 related) class file(s) for forbidden
> API invocations (in 1.88s), 1 error(s).
>
> BUILD FAILED
> /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-Linux/build.xml:485: The
> following error occurred while executing this line:
> /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-Linux/build.xml:73: The
> following error occurred while executing this line:
> /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-Linux/solr/build.xml:271: The
> following error occurred while executing this line:
> /mnt/ssd/jenkins/workspace/Lucene-Solr-4.x-Linux/solr/common-
> build.xml:477: Check for forbidden API calls failed, see log.
>
> Total time: 96 minutes 26 seconds
> Build step 'Invoke Ant' marked build as failure [description-setter]
> Description set: Java: 64bit/jdk1.7.0_67 -XX:-UseCompressedOops -
> XX:+UseConcMarkSweepGC Archiving artifacts Recording test results Email
> was triggered for: Failure - Any Sending email for trigger: Failure - Any
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]