Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-14 Thread Simon Willnauer
yes that is what I was using. the odd part is that I rebuild the RC
and wiped my m2 repo for the old release and now it doesn't run OOM
anymore. Oddness at it's best. It also only happened on my mac but not
on the linux box. I don't know what's going on but it seems to be
sorted out.

simon

On Wed, Nov 13, 2013 at 9:42 PM, Steve Rowe sar...@gmail.com wrote:
 Simon,

 Are you using the maven-compiler-plugin's “maxmem” configuration?: 
 http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#maxmem.
   I’ve never had to use this before, but you should also be able to try it on 
 the command line using -Dmaven.compiler.maxmem=512m (or whatever size is 
 required).

 Steve

 On Nov 13, 2013, at 3:05 PM, Simon Willnauer simon.willna...@gmail.com 
 wrote:

 hmm this is odd. I really don't get why I can't compile ES anymore
 then. I was running the compile with default values not sure how much
 it is but now I can't complie it anymore with 4.6.
 I am not sure what is going on here but it seems the are pretty much broken?

 I will build an RC and we can try it then again!


 On Wed, Nov 13, 2013 at 8:33 PM, Steve Rowe sar...@gmail.com wrote:
 Simon,

 As I mentioned in the 4.6 release thread, I backported LUCENE-5217 and 
 LUCENE-5322 to branch_4x *after* you made the 4.6 release branch, so the 
 LUCENE-5322-related things I’m committing to trunk and branch_4x should not 
 affect the 4.6 release branch.

 So the 4.6 POMs should be very much like the 4.5.1 POMs.

 5GB???  How much did you need for 4.5.1?

 Steve

 On Nov 13, 2013, at 2:24 PM, Simon Willnauer simon.willna...@gmail.com 
 wrote:

 I am just reading through the thread though. I had some problems with
 java 1.7 vs. 1.6 so smoketest failed but the release was still
 testable so I integarted it into elasticsearch. Yet with that artifact
 I build I can't even compile ES since the maven compiler target runs
 out of memory even if I give it 5GB which with 4.5.1 it just ran fine.
 So we have a problem here that I can't really figure out though. This
 maven thing seems to be a black box though. @sarowe I see you are
 fixing something related to maven but is this actually related?

 if yes you need to backport it to 4.x and the release branch please.

 simon

 On Wed, Nov 13, 2013 at 8:15 PM, Robert Muir rcm...@gmail.com wrote:
 Thanks Uwe... so JAVA_HOME seems to be working fine.

 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.

 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so 
 by default it starts jobs also with Java 7. You only configured 
 JAVA_HOME as a sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin 
 UI and select the right one (not Default) in the job config. After 
 that, Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/

 --
 [...truncated 52012 lines...]
 jar-grouping:

 check-queries-uptodate:

 jar-queries:

 check-queryparser-uptodate:

 jar-queryparser:

 check-join-uptodate:

 jar-join:

 prep-lucene-jars:

 resolve-example:

 ivy-availability-check:
[echo] Building solr-solrj...

 ivy-fail:

 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml

 resolve:

 common.init:

 compile-lucene-core:

 init:

 -clover.disable:

 -clover.load:

 -clover.classpath:

 -clover.setup:

 clover:

 common.compile-core:

 compile-core:

 resolve-groovy:

 define-lucene-javadoc-url:

 javadocs:
[echo] Building solr-solrj...

 download-java6-javadoc-packagelist:
  [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
 [javadoc] Generating Javadoc
 [javadoc] Javadoc execution
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
 [javadoc] warning: [options] bootstrap class path not set in 
 conjunction
 with -source 1.6
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
 [javadoc

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Robert Muir
This looks like a real bug in the build?

Ive got JAVA_HOME set to a 1.6 compiler...

On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/

 --
 [...truncated 52012 lines...]
 jar-grouping:

 check-queries-uptodate:

 jar-queries:

 check-queryparser-uptodate:

 jar-queryparser:

 check-join-uptodate:

 jar-join:

 prep-lucene-jars:

 resolve-example:

 ivy-availability-check:
  [echo] Building solr-solrj...

 ivy-fail:

 ivy-configure:
 [ivy:configure] :: loading settings :: file = 
 http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/ws/lucene/ivy-settings.xml

 resolve:

 common.init:

 compile-lucene-core:

 init:

 -clover.disable:

 -clover.load:

 -clover.classpath:

 -clover.setup:

 clover:

 common.compile-core:

 compile-core:

 resolve-groovy:

 define-lucene-javadoc-url:

 javadocs:
  [echo] Building solr-solrj...

 download-java6-javadoc-packagelist:
[delete] Deleting: 
 http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
   [javadoc] Generating Javadoc
   [javadoc] Javadoc execution
   [javadoc] Loading source files for package org.apache.solr.client.solrj...
   [javadoc] warning: [options] bootstrap class path not set in conjunction 
 with -source 1.6
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.beans...
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.impl...
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.request...
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.response...
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
   [javadoc] Loading source files for package org.apache.solr.common...
   [javadoc] Loading source files for package org.apache.solr.common.cloud...
   [javadoc] Loading source files for package org.apache.solr.common.luke...
   [javadoc] Loading source files for package org.apache.solr.common.params...
   [javadoc] Loading source files for package org.apache.solr.common.util...
   [javadoc] Constructing Javadoc information...
   [javadoc] Standard Doclet version 1.7.0_25
   [javadoc] Building tree for all the packages and classes...
   [javadoc] Building index for all the packages and classes...
   [javadoc] Building index for all classes...
   [javadoc] Generating 
 http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
   [javadoc] Note: Custom tags that were not seen:  @lucene.internal
   [javadoc] 1 warning
 [patch-javadoc] Replaced 0 occurrences in 0 files.
   [jar] Building jar: 
 http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/ws/solr/build/solr-solrj/solr-solrj-4.6.0-javadoc.jar

 javadocs:
  [echo] Building solr-core...

 download-java6-javadoc-packagelist:
[delete] Deleting: 
 http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/ws/solr/build/docs/solr-core/stylesheet.css
   [javadoc] Generating Javadoc
   [javadoc] Javadoc execution
   [javadoc] Loading source files for package org.apache.solr...
   [javadoc] warning: [options] bootstrap class path not set in conjunction 
 with -source 1.6
   [javadoc] Loading source files for package org.apache.solr.analysis...
   [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.embedded...
   [javadoc] Loading source files for package org.apache.solr.cloud...
   [javadoc] Loading source files for package org.apache.solr.common...
   [javadoc] Loading source files for package org.apache.solr.core...
   [javadoc] Loading source files for package org.apache.solr.handler...
   [javadoc] Loading source files for package org.apache.solr.handler.admin...
   [javadoc] Loading source files for package 
 org.apache.solr.handler.component...
   [javadoc] Loading source files for package org.apache.solr.handler.loader...
   [javadoc] Loading source files for package org.apache.solr.highlight...
   [javadoc] Loading source files for package org.apache.solr.internal.csv...
   [javadoc] Loading source files for package 
 org.apache.solr.internal.csv.writer...
   [javadoc] Loading source files for package org.apache.solr.logging...
   [javadoc] Loading source files for package org.apache.solr.logging.jul...
   [javadoc] Loading source files for package org.apache.solr.logging.log4j...
   [javadoc] Loading source files for package org.apache.solr.parser...
   [javadoc] Loading source files for package org.apache.solr.request...
   [javadoc] Loading source files for package org.apache.solr.response...
   [javadoc] Loading source files for package 
 org.apache.solr.response.transform...
   [javadoc] Loading source files for package org.apache.solr.rest...
   [javadoc] Loading source files for package org.apache.solr.rest.schema...
   [javadoc] Loading source files for package 

RE: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Uwe Schindler
Hi Robert,

The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
sysprop for ANT, so it got passed with -DJAVA_HOME.

The right config is to define available Java installations via the Admin UI and 
select the right one (not Default) in the job config. After that, Jenkins 
sets JAVA_HOME to the right one before launching ANT.

Uwe

-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5
 
 This looks like a real bug in the build?
 
 Ive got JAVA_HOME set to a 1.6 compiler...
 
 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
  See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
  --
  [...truncated 52012 lines...]
  jar-grouping:
 
  check-queries-uptodate:
 
  jar-queries:
 
  check-queryparser-uptodate:
 
  jar-queryparser:
 
  check-join-uptodate:
 
  jar-join:
 
  prep-lucene-jars:
 
  resolve-example:
 
  ivy-availability-check:
   [echo] Building solr-solrj...
 
  ivy-fail:
 
  ivy-configure:
  [ivy:configure] :: loading settings :: file =
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
  /ivy-settings.xml
 
  resolve:
 
  common.init:
 
  compile-lucene-core:
 
  init:
 
  -clover.disable:
 
  -clover.load:
 
  -clover.classpath:
 
  -clover.setup:
 
  clover:
 
  common.compile-core:
 
  compile-core:
 
  resolve-groovy:
 
  define-lucene-javadoc-url:
 
  javadocs:
   [echo] Building solr-solrj...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package org.apache.solr.client.solrj...
[javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
[javadoc] Loading source files for package 
  org.apache.solr.client.solrj.util...
[javadoc] Loading source files for package org.apache.solr.common...
[javadoc] Loading source files for package
 org.apache.solr.common.cloud...
[javadoc] Loading source files for package org.apache.solr.common.luke...
[javadoc] Loading source files for package
 org.apache.solr.common.params...
[javadoc] Loading source files for package org.apache.solr.common.util...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.7.0_25
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating http://sierranevada.servebeer.com/job/lucene-
 solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
[javadoc] Note: Custom tags that were not seen:  @lucene.internal
[javadoc] 1 warning
  [patch-javadoc] Replaced 0 occurrences in 0 files.
[jar] Building jar:
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/solr/b
  uild/solr-solrj/solr-solrj-4.6.0-javadoc.jar
 
  javadocs:
   [echo] Building solr-core...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-core/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package org.apache.solr...
[javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
[javadoc] Loading source files for package org.apache.solr.analysis...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.embedded...
[javadoc] Loading source files for package org.apache.solr.cloud...
[javadoc] Loading source files for package org.apache.solr.common...
[javadoc] Loading source files for package org.apache.solr.core...
[javadoc] Loading source files for package org.apache.solr.handler...
[javadoc] Loading source files for package
 org.apache.solr.handler.admin...
[javadoc] Loading source files for package
 org.apache.solr.handler.component...
[javadoc] Loading source files for package
 org.apache.solr.handler.loader...
[javadoc] Loading source files for package org.apache.solr.highlight...
[javadoc] Loading

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Robert Muir
Thanks Uwe... so JAVA_HOME seems to be working fine.

This doesnt explain why simon had problems, but at least it confirms
its working: maybe he had a configuration issue.

On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
 default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
 sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin UI 
 and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
  See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
  --
  [...truncated 52012 lines...]
  jar-grouping:
 
  check-queries-uptodate:
 
  jar-queries:
 
  check-queryparser-uptodate:
 
  jar-queryparser:
 
  check-join-uptodate:
 
  jar-join:
 
  prep-lucene-jars:
 
  resolve-example:
 
  ivy-availability-check:
   [echo] Building solr-solrj...
 
  ivy-fail:
 
  ivy-configure:
  [ivy:configure] :: loading settings :: file =
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
  /ivy-settings.xml
 
  resolve:
 
  common.init:
 
  compile-lucene-core:
 
  init:
 
  -clover.disable:
 
  -clover.load:
 
  -clover.classpath:
 
  -clover.setup:
 
  clover:
 
  common.compile-core:
 
  compile-core:
 
  resolve-groovy:
 
  define-lucene-javadoc-url:
 
  javadocs:
   [echo] Building solr-solrj...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package 
  org.apache.solr.client.solrj...
[javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
[javadoc] Loading source files for package 
  org.apache.solr.client.solrj.util...
[javadoc] Loading source files for package org.apache.solr.common...
[javadoc] Loading source files for package
 org.apache.solr.common.cloud...
[javadoc] Loading source files for package org.apache.solr.common.luke...
[javadoc] Loading source files for package
 org.apache.solr.common.params...
[javadoc] Loading source files for package org.apache.solr.common.util...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.7.0_25
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating http://sierranevada.servebeer.com/job/lucene-
 solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
[javadoc] Note: Custom tags that were not seen:  @lucene.internal
[javadoc] 1 warning
  [patch-javadoc] Replaced 0 occurrences in 0 files.
[jar] Building jar:
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/solr/b
  uild/solr-solrj/solr-solrj-4.6.0-javadoc.jar
 
  javadocs:
   [echo] Building solr-core...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-core/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package org.apache.solr...
[javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
[javadoc] Loading source files for package org.apache.solr.analysis...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.embedded...
[javadoc] Loading source files for package org.apache.solr.cloud...
[javadoc] Loading source files for package org.apache.solr.common...
[javadoc] Loading source files for package org.apache.solr.core...
[javadoc] Loading source files for package org.apache.solr.handler...
[javadoc] Loading source files for package
 org.apache.solr.handler.admin

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Simon Willnauer
I am just reading through the thread though. I had some problems with
java 1.7 vs. 1.6 so smoketest failed but the release was still
testable so I integarted it into elasticsearch. Yet with that artifact
I build I can't even compile ES since the maven compiler target runs
out of memory even if I give it 5GB which with 4.5.1 it just ran fine.
So we have a problem here that I can't really figure out though. This
maven thing seems to be a black box though. @sarowe I see you are
fixing something related to maven but is this actually related?

if yes you need to backport it to 4.x and the release branch please.

simon

On Wed, Nov 13, 2013 at 8:15 PM, Robert Muir rcm...@gmail.com wrote:
 Thanks Uwe... so JAVA_HOME seems to be working fine.

 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.

 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
 default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
 sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin UI 
 and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
  See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
  --
  [...truncated 52012 lines...]
  jar-grouping:
 
  check-queries-uptodate:
 
  jar-queries:
 
  check-queryparser-uptodate:
 
  jar-queryparser:
 
  check-join-uptodate:
 
  jar-join:
 
  prep-lucene-jars:
 
  resolve-example:
 
  ivy-availability-check:
   [echo] Building solr-solrj...
 
  ivy-fail:
 
  ivy-configure:
  [ivy:configure] :: loading settings :: file =
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
  /ivy-settings.xml
 
  resolve:
 
  common.init:
 
  compile-lucene-core:
 
  init:
 
  -clover.disable:
 
  -clover.load:
 
  -clover.classpath:
 
  -clover.setup:
 
  clover:
 
  common.compile-core:
 
  compile-core:
 
  resolve-groovy:
 
  define-lucene-javadoc-url:
 
  javadocs:
   [echo] Building solr-solrj...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package 
  org.apache.solr.client.solrj...
[javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
[javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
[javadoc] Loading source files for package 
  org.apache.solr.client.solrj.util...
[javadoc] Loading source files for package org.apache.solr.common...
[javadoc] Loading source files for package
 org.apache.solr.common.cloud...
[javadoc] Loading source files for package 
  org.apache.solr.common.luke...
[javadoc] Loading source files for package
 org.apache.solr.common.params...
[javadoc] Loading source files for package 
  org.apache.solr.common.util...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.7.0_25
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...
[javadoc] Generating http://sierranevada.servebeer.com/job/lucene-
 solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
[javadoc] Note: Custom tags that were not seen:  @lucene.internal
[javadoc] 1 warning
  [patch-javadoc] Replaced 0 occurrences in 0 files.
[jar] Building jar:
  http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/solr/b
  uild/solr-solrj/solr-solrj-4.6.0-javadoc.jar
 
  javadocs:
   [echo] Building solr-core...
 
  download-java6-javadoc-packagelist:
 [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-core/stylesheet.css
[javadoc] Generating Javadoc
[javadoc] Javadoc execution

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Steve Rowe
Simon,

As I mentioned in the 4.6 release thread, I backported LUCENE-5217 and 
LUCENE-5322 to branch_4x *after* you made the 4.6 release branch, so the 
LUCENE-5322-related things I’m committing to trunk and branch_4x should not 
affect the 4.6 release branch.

So the 4.6 POMs should be very much like the 4.5.1 POMs.

5GB???  How much did you need for 4.5.1?

Steve

On Nov 13, 2013, at 2:24 PM, Simon Willnauer simon.willna...@gmail.com wrote:

 I am just reading through the thread though. I had some problems with
 java 1.7 vs. 1.6 so smoketest failed but the release was still
 testable so I integarted it into elasticsearch. Yet with that artifact
 I build I can't even compile ES since the maven compiler target runs
 out of memory even if I give it 5GB which with 4.5.1 it just ran fine.
 So we have a problem here that I can't really figure out though. This
 maven thing seems to be a black box though. @sarowe I see you are
 fixing something related to maven but is this actually related?
 
 if yes you need to backport it to 4.x and the release branch please.
 
 simon
 
 On Wed, Nov 13, 2013 at 8:15 PM, Robert Muir rcm...@gmail.com wrote:
 Thanks Uwe... so JAVA_HOME seems to be working fine.
 
 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.
 
 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,
 
 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
 default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
 sysprop for ANT, so it got passed with -DJAVA_HOME.
 
 The right config is to define available Java installations via the Admin UI 
 and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.
 
 Uwe
 
 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de
 
 
 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5
 
 This looks like a real bug in the build?
 
 Ive got JAVA_HOME set to a 1.6 compiler...
 
 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
 --
 [...truncated 52012 lines...]
 jar-grouping:
 
 check-queries-uptodate:
 
 jar-queries:
 
 check-queryparser-uptodate:
 
 jar-queryparser:
 
 check-join-uptodate:
 
 jar-join:
 
 prep-lucene-jars:
 
 resolve-example:
 
 ivy-availability-check:
 [echo] Building solr-solrj...
 
 ivy-fail:
 
 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml
 
 resolve:
 
 common.init:
 
 compile-lucene-core:
 
 init:
 
 -clover.disable:
 
 -clover.load:
 
 -clover.classpath:
 
 -clover.setup:
 
 clover:
 
 common.compile-core:
 
 compile-core:
 
 resolve-groovy:
 
 define-lucene-javadoc-url:
 
 javadocs:
 [echo] Building solr-solrj...
 
 download-java6-javadoc-packagelist:
   [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
  [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
  [javadoc] Loading source files for package org.apache.solr.common...
  [javadoc] Loading source files for package
 org.apache.solr.common.cloud...
  [javadoc] Loading source files for package org.apache.solr.common.luke...
  [javadoc] Loading source files for package
 org.apache.solr.common.params...
  [javadoc] Loading source files for package org.apache.solr.common.util...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.7.0_25
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating http://sierranevada.servebeer.com/job/lucene-
 solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
  [javadoc] Note: Custom tags that were not seen:  @lucene.internal
  [javadoc] 1 warning
 [patch-javadoc] Replaced 0 occurrences in 0 files.
  [jar] Building jar:
 http

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Simon Willnauer
hmm this is odd. I really don't get why I can't compile ES anymore
then. I was running the compile with default values not sure how much
it is but now I can't complie it anymore with 4.6.
I am not sure what is going on here but it seems the are pretty much broken?

I will build an RC and we can try it then again!


On Wed, Nov 13, 2013 at 8:33 PM, Steve Rowe sar...@gmail.com wrote:
 Simon,

 As I mentioned in the 4.6 release thread, I backported LUCENE-5217 and 
 LUCENE-5322 to branch_4x *after* you made the 4.6 release branch, so the 
 LUCENE-5322-related things I’m committing to trunk and branch_4x should not 
 affect the 4.6 release branch.

 So the 4.6 POMs should be very much like the 4.5.1 POMs.

 5GB???  How much did you need for 4.5.1?

 Steve

 On Nov 13, 2013, at 2:24 PM, Simon Willnauer simon.willna...@gmail.com 
 wrote:

 I am just reading through the thread though. I had some problems with
 java 1.7 vs. 1.6 so smoketest failed but the release was still
 testable so I integarted it into elasticsearch. Yet with that artifact
 I build I can't even compile ES since the maven compiler target runs
 out of memory even if I give it 5GB which with 4.5.1 it just ran fine.
 So we have a problem here that I can't really figure out though. This
 maven thing seems to be a black box though. @sarowe I see you are
 fixing something related to maven but is this actually related?

 if yes you need to backport it to 4.x and the release branch please.

 simon

 On Wed, Nov 13, 2013 at 8:15 PM, Robert Muir rcm...@gmail.com wrote:
 Thanks Uwe... so JAVA_HOME seems to be working fine.

 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.

 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so 
 by default it starts jobs also with Java 7. You only configured JAVA_HOME 
 as a sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin 
 UI and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/

 --
 [...truncated 52012 lines...]
 jar-grouping:

 check-queries-uptodate:

 jar-queries:

 check-queryparser-uptodate:

 jar-queryparser:

 check-join-uptodate:

 jar-join:

 prep-lucene-jars:

 resolve-example:

 ivy-availability-check:
 [echo] Building solr-solrj...

 ivy-fail:

 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml

 resolve:

 common.init:

 compile-lucene-core:

 init:

 -clover.disable:

 -clover.load:

 -clover.classpath:

 -clover.setup:

 clover:

 common.compile-core:

 compile-core:

 resolve-groovy:

 define-lucene-javadoc-url:

 javadocs:
 [echo] Building solr-solrj...

 download-java6-javadoc-packagelist:
   [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
  [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
  [javadoc] Loading source files for package org.apache.solr.common...
  [javadoc] Loading source files for package
 org.apache.solr.common.cloud...
  [javadoc] Loading source files for package 
 org.apache.solr.common.luke...
  [javadoc] Loading source files for package
 org.apache.solr.common.params...
  [javadoc] Loading source files for package 
 org.apache.solr.common.util...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.7.0_25
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Steve Rowe
Simon,

Are you using the maven-compiler-plugin's “maxmem” configuration?: 
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#maxmem.
  I’ve never had to use this before, but you should also be able to try it on 
the command line using -Dmaven.compiler.maxmem=512m (or whatever size is 
required).

Steve

On Nov 13, 2013, at 3:05 PM, Simon Willnauer simon.willna...@gmail.com wrote:

 hmm this is odd. I really don't get why I can't compile ES anymore
 then. I was running the compile with default values not sure how much
 it is but now I can't complie it anymore with 4.6.
 I am not sure what is going on here but it seems the are pretty much broken?
 
 I will build an RC and we can try it then again!
 
 
 On Wed, Nov 13, 2013 at 8:33 PM, Steve Rowe sar...@gmail.com wrote:
 Simon,
 
 As I mentioned in the 4.6 release thread, I backported LUCENE-5217 and 
 LUCENE-5322 to branch_4x *after* you made the 4.6 release branch, so the 
 LUCENE-5322-related things I’m committing to trunk and branch_4x should not 
 affect the 4.6 release branch.
 
 So the 4.6 POMs should be very much like the 4.5.1 POMs.
 
 5GB???  How much did you need for 4.5.1?
 
 Steve
 
 On Nov 13, 2013, at 2:24 PM, Simon Willnauer simon.willna...@gmail.com 
 wrote:
 
 I am just reading through the thread though. I had some problems with
 java 1.7 vs. 1.6 so smoketest failed but the release was still
 testable so I integarted it into elasticsearch. Yet with that artifact
 I build I can't even compile ES since the maven compiler target runs
 out of memory even if I give it 5GB which with 4.5.1 it just ran fine.
 So we have a problem here that I can't really figure out though. This
 maven thing seems to be a black box though. @sarowe I see you are
 fixing something related to maven but is this actually related?
 
 if yes you need to backport it to 4.x and the release branch please.
 
 simon
 
 On Wed, Nov 13, 2013 at 8:15 PM, Robert Muir rcm...@gmail.com wrote:
 Thanks Uwe... so JAVA_HOME seems to be working fine.
 
 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.
 
 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,
 
 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so 
 by default it starts jobs also with Java 7. You only configured JAVA_HOME 
 as a sysprop for ANT, so it got passed with -DJAVA_HOME.
 
 The right config is to define available Java installations via the Admin 
 UI and select the right one (not Default) in the job config. After 
 that, Jenkins sets JAVA_HOME to the right one before launching ANT.
 
 Uwe
 
 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de
 
 
 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5
 
 This looks like a real bug in the build?
 
 Ive got JAVA_HOME set to a 1.6 compiler...
 
 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
 --
 [...truncated 52012 lines...]
 jar-grouping:
 
 check-queries-uptodate:
 
 jar-queries:
 
 check-queryparser-uptodate:
 
 jar-queryparser:
 
 check-join-uptodate:
 
 jar-join:
 
 prep-lucene-jars:
 
 resolve-example:
 
 ivy-availability-check:
[echo] Building solr-solrj...
 
 ivy-fail:
 
 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml
 
 resolve:
 
 common.init:
 
 compile-lucene-core:
 
 init:
 
 -clover.disable:
 
 -clover.load:
 
 -clover.classpath:
 
 -clover.setup:
 
 clover:
 
 common.compile-core:
 
 compile-core:
 
 resolve-groovy:
 
 define-lucene-javadoc-url:
 
 javadocs:
[echo] Building solr-solrj...
 
 download-java6-javadoc-packagelist:
  [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
 [javadoc] Generating Javadoc
 [javadoc] Javadoc execution
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
 [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
 [javadoc] Loading source files for package org.apache.solr.common...
 [javadoc] Loading source files for package
 org.apache.solr.common.cloud...
 [javadoc] Loading

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Steve Rowe
Robert,

I don’t think ant -DJAVA_HOME=whatever ... works like you think it does.

The javac Ant task doc says that JAVA_HOME is consulted only when fork=“yes 
http://ant.apache.org/manual/Tasks/javac.html, and the compile macro in 
lucene/common-build.xml, which invokes the javac task, doesn’t specify the 
fork option (default is “no”).

I tested creating the lucene-core jar from lucene/core/, and unset the 
JAVA_HOME environment variable to be sure it wasn’t a factor.

When I have $JAVA6_HOME/bin in my PATH and run the following, the manifest 
still says it was created with Java 6:

   JAVA_HOME= ant -DJAVA_HOME=$JAVA7_HOME jar

same for vice-versa ($JAVA7_HOME/bin in my PATH, manifest says it was created 
with Java 7):

   JAVA_HOME= ant -DJAVA_HOME=$JAVA6_HOME jar

By contrast, when I set the JAVA_HOME *environment variable*, the manifest says 
it was created with the corresponding Java version, rather than the one in my 
PATH.  AFAICT, this is because the ant script bootstraps itself with 
$JAVA_HOME/bin/java, rather than the Ant javac task respecting the 
environment variable.

Steve

On Nov 13, 2013, at 2:15 PM, Robert Muir rcm...@gmail.com wrote:

 Thanks Uwe... so JAVA_HOME seems to be working fine.
 
 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.
 
 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,
 
 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
 default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
 sysprop for ANT, so it got passed with -DJAVA_HOME.
 
 The right config is to define available Java installations via the Admin UI 
 and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.
 
 Uwe
 
 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de
 
 
 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5
 
 This looks like a real bug in the build?
 
 Ive got JAVA_HOME set to a 1.6 compiler...
 
 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
 --
 [...truncated 52012 lines...]
 jar-grouping:
 
 check-queries-uptodate:
 
 jar-queries:
 
 check-queryparser-uptodate:
 
 jar-queryparser:
 
 check-join-uptodate:
 
 jar-join:
 
 prep-lucene-jars:
 
 resolve-example:
 
 ivy-availability-check:
 [echo] Building solr-solrj...
 
 ivy-fail:
 
 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml
 
 resolve:
 
 common.init:
 
 compile-lucene-core:
 
 init:
 
 -clover.disable:
 
 -clover.load:
 
 -clover.classpath:
 
 -clover.setup:
 
 clover:
 
 common.compile-core:
 
 compile-core:
 
 resolve-groovy:
 
 define-lucene-javadoc-url:
 
 javadocs:
 [echo] Building solr-solrj...
 
 download-java6-javadoc-packagelist:
   [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.solr.client.solrj...
  [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
  [javadoc] Loading source files for package org.apache.solr.common...
  [javadoc] Loading source files for package
 org.apache.solr.common.cloud...
  [javadoc] Loading source files for package org.apache.solr.common.luke...
  [javadoc] Loading source files for package
 org.apache.solr.common.params...
  [javadoc] Loading source files for package org.apache.solr.common.util...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.7.0_25
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating http://sierranevada.servebeer.com/job/lucene-
 solr-46-smoker/ws/solr/build/docs/solr-solrj/help-doc.html...
  [javadoc] Note: Custom tags that were not seen:  @lucene.internal
  [javadoc] 1 warning
 [patch-javadoc] Replaced 0 occurrences in 0 files.
  [jar] Building jar:
 http

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Robert Muir
no, you are right: and i think it explains the issue both simon and I had.

Don't do this:

   ant -DJAVA_HOME=x jar

Do this:

   JAVA_HOME=xxx ant jar

Arguably this is a trap. We could consider adding a check (at least to
invoke a warning, if not fail) to our build perhaps, if
property(JAVA_HOME) is set and property(JAVA_HOME) != env(JAVA_HOME)

On Wed, Nov 13, 2013 at 4:20 PM, Steve Rowe sar...@gmail.com wrote:
 Robert,

 I don’t think ant -DJAVA_HOME=whatever ... works like you think it does.

 The javac Ant task doc says that JAVA_HOME is consulted only when fork=“yes 
 http://ant.apache.org/manual/Tasks/javac.html, and the compile macro in 
 lucene/common-build.xml, which invokes the javac task, doesn’t specify the 
 fork option (default is “no”).

 I tested creating the lucene-core jar from lucene/core/, and unset the 
 JAVA_HOME environment variable to be sure it wasn’t a factor.

 When I have $JAVA6_HOME/bin in my PATH and run the following, the manifest 
 still says it was created with Java 6:

JAVA_HOME= ant -DJAVA_HOME=$JAVA7_HOME jar

 same for vice-versa ($JAVA7_HOME/bin in my PATH, manifest says it was created 
 with Java 7):

JAVA_HOME= ant -DJAVA_HOME=$JAVA6_HOME jar

 By contrast, when I set the JAVA_HOME *environment variable*, the manifest 
 says it was created with the corresponding Java version, rather than the one 
 in my PATH.  AFAICT, this is because the ant script bootstraps itself with 
 $JAVA_HOME/bin/java, rather than the Ant javac task respecting the 
 environment variable.

 Steve

 On Nov 13, 2013, at 2:15 PM, Robert Muir rcm...@gmail.com wrote:

 Thanks Uwe... so JAVA_HOME seems to be working fine.

 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.

 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so by 
 default it starts jobs also with Java 7. You only configured JAVA_HOME as a 
 sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin UI 
 and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/

 --
 [...truncated 52012 lines...]
 jar-grouping:

 check-queries-uptodate:

 jar-queries:

 check-queryparser-uptodate:

 jar-queryparser:

 check-join-uptodate:

 jar-join:

 prep-lucene-jars:

 resolve-example:

 ivy-availability-check:
 [echo] Building solr-solrj...

 ivy-fail:

 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml

 resolve:

 common.init:

 compile-lucene-core:

 init:

 -clover.disable:

 -clover.load:

 -clover.classpath:

 -clover.setup:

 clover:

 common.compile-core:

 compile-core:

 resolve-groovy:

 define-lucene-javadoc-url:

 javadocs:
 [echo] Building solr-solrj...

 download-java6-javadoc-packagelist:
   [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
  [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
  [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
  [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
  [javadoc] Loading source files for package org.apache.solr.common...
  [javadoc] Loading source files for package
 org.apache.solr.common.cloud...
  [javadoc] Loading source files for package org.apache.solr.common.luke...
  [javadoc] Loading source files for package
 org.apache.solr.common.params...
  [javadoc] Loading source files for package org.apache.solr.common.util...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.7.0_25
  [javadoc] Building tree for all the packages and classes...
  [javadoc

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Steve Rowe
I never run into this problem because I use Bash aliases to switch java 
versions:

alias java6='export JAVA_HOME=$JAVA6_HOME ; export 
PATH=$JAVA6_HOME/bin:$PATH'
alias java7='export JAVA_HOME=$JAVA7_HOME ; export 
PATH=$JAVA7_HOME/bin:$PATH”’

So for me, $JAVA_HOME/bin/java is always on the first one on the PATH.

Steve

On Nov 13, 2013, at 4:23 PM, Robert Muir rcm...@gmail.com wrote:

 no, you are right: and i think it explains the issue both simon and I had.
 
 Don't do this:
 
   ant -DJAVA_HOME=x jar
 
 Do this:
 
   JAVA_HOME=xxx ant jar
 
 Arguably this is a trap. We could consider adding a check (at least to
 invoke a warning, if not fail) to our build perhaps, if
 property(JAVA_HOME) is set and property(JAVA_HOME) != env(JAVA_HOME)
 
 On Wed, Nov 13, 2013 at 4:20 PM, Steve Rowe sar...@gmail.com wrote:
 Robert,
 
 I don’t think ant -DJAVA_HOME=whatever ... works like you think it does.
 
 The javac Ant task doc says that JAVA_HOME is consulted only when fork=“yes 
 http://ant.apache.org/manual/Tasks/javac.html, and the compile macro in 
 lucene/common-build.xml, which invokes the javac task, doesn’t specify the 
 fork option (default is “no”).
 
 I tested creating the lucene-core jar from lucene/core/, and unset the 
 JAVA_HOME environment variable to be sure it wasn’t a factor.
 
 When I have $JAVA6_HOME/bin in my PATH and run the following, the manifest 
 still says it was created with Java 6:
 
   JAVA_HOME= ant -DJAVA_HOME=$JAVA7_HOME jar
 
 same for vice-versa ($JAVA7_HOME/bin in my PATH, manifest says it was 
 created with Java 7):
 
   JAVA_HOME= ant -DJAVA_HOME=$JAVA6_HOME jar
 
 By contrast, when I set the JAVA_HOME *environment variable*, the manifest 
 says it was created with the corresponding Java version, rather than the one 
 in my PATH.  AFAICT, this is because the ant script bootstraps itself with 
 $JAVA_HOME/bin/java, rather than the Ant javac task respecting the 
 environment variable.
 
 Steve
 
 On Nov 13, 2013, at 2:15 PM, Robert Muir rcm...@gmail.com wrote:
 
 Thanks Uwe... so JAVA_HOME seems to be working fine.
 
 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.
 
 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,
 
 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so 
 by default it starts jobs also with Java 7. You only configured JAVA_HOME 
 as a sysprop for ANT, so it got passed with -DJAVA_HOME.
 
 The right config is to define available Java installations via the Admin 
 UI and select the right one (not Default) in the job config. After that, 
 Jenkins sets JAVA_HOME to the right one before launching ANT.
 
 Uwe
 
 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de
 
 
 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5
 
 This looks like a real bug in the build?
 
 Ive got JAVA_HOME set to a 1.6 compiler...
 
 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/
 
 --
 [...truncated 52012 lines...]
 jar-grouping:
 
 check-queries-uptodate:
 
 jar-queries:
 
 check-queryparser-uptodate:
 
 jar-queryparser:
 
 check-join-uptodate:
 
 jar-join:
 
 prep-lucene-jars:
 
 resolve-example:
 
 ivy-availability-check:
[echo] Building solr-solrj...
 
 ivy-fail:
 
 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml
 
 resolve:
 
 common.init:
 
 compile-lucene-core:
 
 init:
 
 -clover.disable:
 
 -clover.load:
 
 -clover.classpath:
 
 -clover.setup:
 
 clover:
 
 common.compile-core:
 
 compile-core:
 
 resolve-groovy:
 
 define-lucene-javadoc-url:
 
 javadocs:
[echo] Building solr-solrj...
 
 download-java6-javadoc-packagelist:
  [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
 [javadoc] Generating Javadoc
 [javadoc] Javadoc execution
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
 [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.response...
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj.util...
 [javadoc] Loading source files for package org.apache.solr.common...
 [javadoc] Loading source files

Re: Build failed in Jenkins: lucene-solr-46-smoker #5

2013-11-13 Thread Robert Muir
Yeah, and to be fair I'm pretty sure i remember documenting in
ReleaseTODO that you should always set PATH too just in case.

A bit of paranoia, though i prefer for the release process to be more
robust if we can do it.

On Wed, Nov 13, 2013 at 4:47 PM, Steve Rowe sar...@gmail.com wrote:
 I never run into this problem because I use Bash aliases to switch java 
 versions:

 alias java6='export JAVA_HOME=$JAVA6_HOME ; export 
 PATH=$JAVA6_HOME/bin:$PATH'
 alias java7='export JAVA_HOME=$JAVA7_HOME ; export 
 PATH=$JAVA7_HOME/bin:$PATH”’

 So for me, $JAVA_HOME/bin/java is always on the first one on the PATH.

 Steve

 On Nov 13, 2013, at 4:23 PM, Robert Muir rcm...@gmail.com wrote:

 no, you are right: and i think it explains the issue both simon and I had.

 Don't do this:

   ant -DJAVA_HOME=x jar

 Do this:

   JAVA_HOME=xxx ant jar

 Arguably this is a trap. We could consider adding a check (at least to
 invoke a warning, if not fail) to our build perhaps, if
 property(JAVA_HOME) is set and property(JAVA_HOME) != env(JAVA_HOME)

 On Wed, Nov 13, 2013 at 4:20 PM, Steve Rowe sar...@gmail.com wrote:
 Robert,

 I don’t think ant -DJAVA_HOME=whatever ... works like you think it does.

 The javac Ant task doc says that JAVA_HOME is consulted only when 
 fork=“yes http://ant.apache.org/manual/Tasks/javac.html, and the compile 
 macro in lucene/common-build.xml, which invokes the javac task, doesn’t 
 specify the fork option (default is “no”).

 I tested creating the lucene-core jar from lucene/core/, and unset the 
 JAVA_HOME environment variable to be sure it wasn’t a factor.

 When I have $JAVA6_HOME/bin in my PATH and run the following, the manifest 
 still says it was created with Java 6:

   JAVA_HOME= ant -DJAVA_HOME=$JAVA7_HOME jar

 same for vice-versa ($JAVA7_HOME/bin in my PATH, manifest says it was 
 created with Java 7):

   JAVA_HOME= ant -DJAVA_HOME=$JAVA6_HOME jar

 By contrast, when I set the JAVA_HOME *environment variable*, the manifest 
 says it was created with the corresponding Java version, rather than the 
 one in my PATH.  AFAICT, this is because the ant script bootstraps itself 
 with $JAVA_HOME/bin/java, rather than the Ant javac task respecting the 
 environment variable.

 Steve

 On Nov 13, 2013, at 2:15 PM, Robert Muir rcm...@gmail.com wrote:

 Thanks Uwe... so JAVA_HOME seems to be working fine.

 This doesnt explain why simon had problems, but at least it confirms
 its working: maybe he had a configuration issue.

 On Wed, Nov 13, 2013 at 2:10 PM, Uwe Schindler u...@thetaphi.de wrote:
 Hi Robert,

 The Jenkins config was wrong. Your Jenkins instance runs with Java 7, so 
 by default it starts jobs also with Java 7. You only configured JAVA_HOME 
 as a sysprop for ANT, so it got passed with -DJAVA_HOME.

 The right config is to define available Java installations via the Admin 
 UI and select the right one (not Default) in the job config. After 
 that, Jenkins sets JAVA_HOME to the right one before launching ANT.

 Uwe

 -
 Uwe Schindler
 H.-H.-Meier-Allee 63, D-28213 Bremen
 http://www.thetaphi.de
 eMail: u...@thetaphi.de


 -Original Message-
 From: Robert Muir [mailto:rcm...@gmail.com]
 Sent: Wednesday, November 13, 2013 7:00 PM
 To: dev@lucene.apache.org
 Subject: Re: Build failed in Jenkins: lucene-solr-46-smoker #5

 This looks like a real bug in the build?

 Ive got JAVA_HOME set to a 1.6 compiler...

 On Wed, Nov 13, 2013 at 12:56 PM, Charlie Cron
 hudsonsevilt...@gmail.com wrote:
 See http://sierranevada.servebeer.com/job/lucene-solr-46-smoker/5/

 --
 [...truncated 52012 lines...]
 jar-grouping:

 check-queries-uptodate:

 jar-queries:

 check-queryparser-uptodate:

 jar-queryparser:

 check-join-uptodate:

 jar-join:

 prep-lucene-jars:

 resolve-example:

 ivy-availability-check:
[echo] Building solr-solrj...

 ivy-fail:

 ivy-configure:
 [ivy:configure] :: loading settings :: file =
 http://sierranevada.servebeer.com/job/lucene-solr-46-
 smoker/ws/lucene
 /ivy-settings.xml

 resolve:

 common.init:

 compile-lucene-core:

 init:

 -clover.disable:

 -clover.load:

 -clover.classpath:

 -clover.setup:

 clover:

 common.compile-core:

 compile-core:

 resolve-groovy:

 define-lucene-javadoc-url:

 javadocs:
[echo] Building solr-solrj...

 download-java6-javadoc-packagelist:
  [delete] Deleting: http://sierranevada.servebeer.com/job/lucene-solr-
 46-smoker/ws/solr/build/docs/solr-solrj/stylesheet.css
 [javadoc] Generating Javadoc
 [javadoc] Javadoc execution
 [javadoc] Loading source files for package 
 org.apache.solr.client.solrj...
 [javadoc] warning: [options] bootstrap class path not set in conjunction
 with -source 1.6
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.beans...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.impl...
 [javadoc] Loading source files for package
 org.apache.solr.client.solrj.request...
 [javadoc] Loading source