I also pushed another commit to change the eclipse configuration to fail on
unused imports as well, so that you can see errors from the IDE before
running precommit. You just need to run `ant eclipse` again and then
refresh the project from eclipse. I am not familiar with Inetllij but maybe
it can do something similar?

Le lun. 20 juin 2016 à 10:43, Adrien Grand <jpou...@gmail.com> a écrit :

> I already pushed a fix for this one since it was making precommit fail.
>
> Le lun. 20 juin 2016 à 10:26, Policeman Jenkins Server <
> jenk...@thetaphi.de> a écrit :
>
>> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-master-MacOSX/3351/
>> Java: 64bit/jdk1.8.0 -XX:-UseCompressedOops -XX:+UseConcMarkSweepGC
>>
>> All tests passed
>>
>> Build Log:
>> [...truncated 63140 lines...]
>> -ecj-javadoc-lint-src:
>>     [mkdir] Created dir:
>> /var/folders/qg/h2dfw5s161s51l2bn79mrb7r0000gn/T/ecj1911939807
>>  [ecj-lint] Compiling 932 source files to
>> /var/folders/qg/h2dfw5s161s51l2bn79mrb7r0000gn/T/ecj1911939807
>>  [ecj-lint] invalid Class-Path header in manifest of jar file:
>> /Users/jenkins/.ivy2/cache/org.restlet.jee/org.restlet/jars/org.restlet-2.3.0.jar
>>  [ecj-lint] invalid Class-Path header in manifest of jar file:
>> /Users/jenkins/.ivy2/cache/org.restlet.jee/org.restlet.ext.servlet/jars/org.restlet.ext.servlet-2.3.0.jar
>>  [ecj-lint] ----------
>>  [ecj-lint] 1. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/Assign.java
>> (at line 101)
>>  [ecj-lint]     Collections.sort(shardIdNames, (o1, o2) -> {
>>  [ecj-lint]                                    ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] 2. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/Assign.java
>> (at line 101)
>>  [ecj-lint]     Collections.sort(shardIdNames, (o1, o2) -> {
>>  [ecj-lint]                                    ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] 3. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/Assign.java
>> (at line 101)
>>  [ecj-lint]     Collections.sort(shardIdNames, (o1, o2) -> {
>>  [ecj-lint]                                    ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 4. ERROR in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/ElectionContext.java
>> (at line 40)
>>  [ecj-lint]     import org.apache.solr.common.util.RetryUtil.RetryCmd;
>>  [ecj-lint]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] The import org.apache.solr.common.util.RetryUtil.RetryCmd is
>> never used
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 5. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/rule/ReplicaAssigner.java
>> (at line 213)
>>  [ecj-lint]     Collections.sort(sortedLiveNodes, (n1, n2) -> {
>>  [ecj-lint]                                       ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] 6. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/rule/ReplicaAssigner.java
>> (at line 213)
>>  [ecj-lint]     Collections.sort(sortedLiveNodes, (n1, n2) -> {
>>  [ecj-lint]                                       ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] 7. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/cloud/rule/ReplicaAssigner.java
>> (at line 213)
>>  [ecj-lint]     Collections.sort(sortedLiveNodes, (n1, n2) -> {
>>  [ecj-lint]                                       ^^^^^^^^^^^
>>  [ecj-lint] (Recovered) Internal inconsistency detected during lambda
>> shape analysis
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 8. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java
>> (at line 226)
>>  [ecj-lint]     dir = new BlockDirectory(path, hdfsDir, cache, null,
>> blockCacheReadEnabled, false, cacheMerges, cacheReadOnce);
>>  [ecj-lint]
>>  
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'dir' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 9. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java
>> (at line 120)
>>  [ecj-lint]     reader = cfiltfac.create(reader);
>>  [ecj-lint]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'reader' is not closed at this location
>>  [ecj-lint] ----------
>>  [ecj-lint] 10. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java
>> (at line 144)
>>  [ecj-lint]     return namedList;
>>  [ecj-lint]     ^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'listBasedTokenStream' is not closed at this
>> location
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 11. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java
>> (at line 1193)
>>  [ecj-lint]     DirectoryReader reader = s==null ? null :
>> s.get().getIndexReader();
>>  [ecj-lint]                     ^^^^^^
>>  [ecj-lint] Resource leak: 'reader' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 12. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/SQLHandler.java
>> (at line 254)
>>  [ecj-lint]     ParallelStream parallelStream = new
>> ParallelStream(workerZkHost, workerCollection, tupleStream, numWorkers,
>> comp);
>>  [ecj-lint]                    ^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'parallelStream' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 13. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/SQLHandler.java
>> (at line 393)
>>  [ecj-lint]     ParallelStream parallelStream = new
>> ParallelStream(workerZkHost, workerCollection, tupleStream, numWorkers,
>> comp);
>>  [ecj-lint]                    ^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'parallelStream' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 14. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/handler/component/ExpandComponent.java
>> (at line 223)
>>  [ecj-lint]     UninvertingReader uninvertingReader = new
>> UninvertingReader(new ReaderWrapper(searcher.getLeafReader(), field),
>> mapping);
>>  [ecj-lint]                       ^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'uninvertingReader' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 15. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java
>> (at line 544)
>>  [ecj-lint]     tvWindowStream = new OffsetWindowTokenFilter(tvStream);
>>  [ecj-lint]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'tvWindowStream' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 16. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/request/SimpleFacets.java
>> (at line 829)
>>  [ecj-lint]     fastForRandomSet = new HashDocSet(sset.getDocs(), 0,
>> sset.size());
>>  [ecj-lint]
>>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'fastForRandomSet' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 17. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/schema/OpenExchangeRatesOrgProvider.java
>> (at line 146)
>>  [ecj-lint]     ratesJsonStream =
>> resourceLoader.openResource(ratesFileLocation);
>>  [ecj-lint]
>>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'ratesJsonStream' is not closed at this
>> location
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 18. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/CollapsingQParserPlugin.java
>> (at line 1187)
>>  [ecj-lint]     UninvertingReader uninvertingReader = new
>> UninvertingReader(new ReaderWrapper(searcher.getLeafReader(),
>> collapseField), mapping);
>>  [ecj-lint]                       ^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'uninvertingReader' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 19. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/DocSlice.java
>> (at line 145)
>>  [ecj-lint]     HashDocSet h = new HashDocSet(docs,offset,len);
>>  [ecj-lint]                ^
>>  [ecj-lint] Resource leak: 'h' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 20. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/DocSlice.java
>> (at line 154)
>>  [ecj-lint]     HashDocSet h = new HashDocSet(docs,offset,len);
>>  [ecj-lint]                ^
>>  [ecj-lint] Resource leak: 'h' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 21. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/DocSlice.java
>> (at line 163)
>>  [ecj-lint]     HashDocSet h = new HashDocSet(docs,offset,len);
>>  [ecj-lint]                ^
>>  [ecj-lint] Resource leak: 'h' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 22. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/function/OrdFieldSource.java
>> (at line 78)
>>  [ecj-lint]     SolrIndexSearcher is = (SolrIndexSearcher) o;
>>  [ecj-lint]                       ^^
>>  [ecj-lint] Resource leak: 'is' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 23. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/search/function/ReverseOrdFieldSource.java
>> (at line 78)
>>  [ecj-lint]     SolrIndexSearcher is = (SolrIndexSearcher) o;
>>  [ecj-lint]                       ^^
>>  [ecj-lint] Resource leak: 'is' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 24. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java
>> (at line 184)
>>  [ecj-lint]     throw new SolrException(ErrorCode.SERVER_ERROR, "Error
>> occurred while loading solr.xml from zookeeper", e);
>>  [ecj-lint]
>>  
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>  [ecj-lint] Resource leak: 'loader' is not closed at this location
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 25. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/update/CdcrTransactionLog.java
>> (at line 98)
>>  [ecj-lint]     ChannelFastInputStream is = new
>> ChannelFastInputStream(channel, pos);
>>  [ecj-lint]                            ^^
>>  [ecj-lint] Resource leak: 'is' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 26. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/update/TransactionLog.java
>> (at line 226)
>>  [ecj-lint]     ChannelFastInputStream is = new
>> ChannelFastInputStream(channel, pos);
>>  [ecj-lint]                            ^^
>>  [ecj-lint] Resource leak: 'is' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 27. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/update/TransactionLog.java
>> (at line 226)
>>  [ecj-lint]     ChannelFastInputStream is = new
>> ChannelFastInputStream(channel, pos);
>>  [ecj-lint]                            ^^
>>  [ecj-lint] Resource leak: 'is' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 28. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/util/SimplePostTool.java
>> (at line 640)
>>  [ecj-lint]     BAOS bos =  new BAOS();
>>  [ecj-lint]          ^^^
>>  [ecj-lint] Resource leak: 'bos' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 29. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/util/SimplePostTool.java
>> (at line 640)
>>  [ecj-lint]     BAOS bos =  new BAOS();
>>  [ecj-lint]          ^^^
>>  [ecj-lint] Resource leak: 'bos' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] ----------
>>  [ecj-lint] 30. WARNING in
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/core/src/java/org/apache/solr/util/SolrLogLayout.java
>> (at line 149)
>>  [ecj-lint]     SolrQueryRequest req = requestInfo == null ? null :
>> requestInfo.getReq();
>>  [ecj-lint]                      ^^^
>>  [ecj-lint] Resource leak: 'req' is never closed
>>  [ecj-lint] ----------
>>  [ecj-lint] 30 problems (1 error, 29 warnings)
>>
>> BUILD FAILED
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/build.xml:740: The
>> following error occurred while executing this line:
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/build.xml:101: The
>> following error occurred while executing this line:
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/solr/build.xml:652:
>> The following error occurred while executing this line:
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/lucene/common-build.xml:1976:
>> The following error occurred while executing this line:
>> /Users/jenkins/workspace/Lucene-Solr-master-MacOSX/lucene/common-build.xml:2015:
>> Compile failed; see the compiler error output for details.
>>
>> Total time: 95 minutes 11 seconds
>> Build step 'Invoke Ant' marked build as failure
>> Archiving artifacts
>> [WARNINGS] Skipping publisher since build result is FAILURE
>> Recording test results
>> Email was triggered for: Failure - Any
>> Sending email for trigger: Failure - Any
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>

Reply via email to