Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lastest git master does not build clean #3674

Closed
h4ck3rm1k3 opened this issue Sep 12, 2013 · 12 comments
Closed

Lastest git master does not build clean #3674

h4ck3rm1k3 opened this issue Sep 12, 2013 · 12 comments

Comments

@h4ck3rm1k3
Copy link

1> REPRODUCE WITH : mvn test -Dtests.seed=23CD52CEE15D72 -Dtests.class=org.elasticsearch.routing.SimpleRoutingTests -Dtests.method=testSimpleSearchRouting -Dtests.prefix=tests -Dtests.integration= -Dtests.nightly= -Dfile.encoding=UTF-8 -Duser.timezone=America/Los_Angeles
1> Throwable:
1> org.elasticsearch.index.mapper.MapperParsingException: External routing [0] and document path routing [null] mismatch
1> __randomizedtesting.SeedInfo.seed([23CD52CEE15D72:BC2675518BB49BEA]:0)
1> org.elasticsearch.index.mapper.internal.RoutingFieldMapper.validate(RoutingFieldMapper.java:185)
1> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:520)
1> org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:452)
1> org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:358)
1> org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:201)
1> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:544)
1> org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:429)
1> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
1> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
1> java.lang.Thread.run(Thread.java:724)
1>
1> [2013-09-11 16:12:37,660][INFO ][org.elasticsearch ] Test testSimpleSearchRouting(org.elasticsearch.routing.SimpleRoutingTests) finished
ERROR 0.18s | SimpleRoutingTests.testSimpleSearchRouting <<<

Throwable #1: org.elasticsearch.index.mapper.MapperParsingException: External routing [0] and document path routing [null] mismatch
at __randomizedtesting.SeedInfo.seed([23CD52CEE15D72:BC2675518BB49BEA]:0)
at org.elasticsearch.index.mapper.internal.RoutingFieldMapper.validate(RoutingFieldMapper.java:185)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:520)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:452)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:358)
at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:201)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:544)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:429)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Completed in 1.23s, 6 tests, 1 error <<< FAILURES!

1> REPRODUCE WITH : mvn test -Dtests.seed=23CD52CEE15D72 -Dtests.class=org.elasticsearch.search.simple.SimpleSearchTests -Dtests.method=simpleDateMathTests -Dtests.prefix=tests -Dtests.integration= -Dtests.nightly= -Dfile.encoding=UTF-8 -Duser.timezone=America/Los_Angeles
1> Throwable:
1> java.lang.AssertionError: Hit count is 0 but 2 was expected. Total shards: 5 Successful shards: 5 & 0 shard failures:
1> __randomizedtesting.SeedInfo.seed([23CD52CEE15D72:16F64B1793B3F5AC]:0)
1> [...org.junit.]
1> org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount(ElasticsearchAssertions.java:103)
1> org.elasticsearch.search.simple.SimpleSearchTests.simpleDateMathTests(SimpleSearchTests.java:155)
1> [...sun.
, com.carrotsearch.randomizedtesting., java.lang.reflect.]
1> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
1> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51)
1> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
1> [...com.carrotsearch.randomizedtesting.]
1> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
1> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
1> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
1> [...com.carrotsearch.randomizedtesting.
]
1> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
1> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
1> [...com.carrotsearch.randomizedtesting.]
1> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43)
1> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
1> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
1> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
1> [...com.carrotsearch.randomizedtesting.
]
1> java.lang.Thread.run(Thread.java:724)
1>
1> [2013-09-11 16:06:04,998][INFO ][org.elasticsearch ] Test simpleDateMathTests(org.elasticsearch.search.simple.SimpleSearchTests) finished
FAILURE 0.21s | SimpleSearchTests.simpleDateMathTests <<<

Throwable #1: java.lang.AssertionError: Hit count is 0 but 2 was expected. Total shards: 5 Successful shards: 5 & 0 shard failures:
at __randomizedtesting.SeedInfo.seed([23CD52CEE15D72:16F64B1793B3F5AC]:0)
at org.junit.Assert.fail(Assert.java:93)
at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount(ElasticsearchAssertions.java:103)
at org.elasticsearch.search.simple.SimpleSearchTests.simpleDateMathTests(SimpleSearchTests.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559)
at com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50)
at org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746)
at com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648)
at com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42)
at com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358)
at java.lang.Thread.run(Thread.java:724)

@ghost ghost assigned javanna Sep 12, 2013
@brwe
Copy link
Contributor

brwe commented Sep 12, 2013

Thanks a lot for taking the time to report the failures. This is great as we've been working on some rare failure cases the past few weeks. We see them since we switched to randomized testing [1]. We have seen something like the second one before, but not the first. Can you share the complete log output for both? I have a couple of questions:

Were you running the tests while the machine was under load?
Which jvm are you using?
Can you reproduce the failure on your machine? (I cannot unfortunately.) If so, could you try with using only one jvm (add the -Dtests.jvms=1 param)?

[1] http://labs.carrotsearch.com/randomizedtesting.html

@h4ck3rm1k3
Copy link
Author

on the second run, this first one worked.
/home/mdupont/experiments/maven/OME/experiments/maven/apache-maven-3.0-SNAPSHOT/bin/mvn test -Dtests.seed=23CD52CEE15D72 -Dtests.class=org.elasticsearch.routing.SimpleRoutingTests -Dtests.method=testSimpleSearchRouting -Dtests.prefix=tests -Dtests.integration= -Dtests.nightly= -Dfile.encoding=UTF-8 -Duser.timezone=America/Los_Angeles
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building elasticsearch 1.0.0.Beta1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ elasticsearch ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ elasticsearch ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /home/mdupont/experiments/elasticsearch && git rev-parse --verify HEAD
[INFO] Working directory: /home/mdupont/experiments/elasticsearch
[INFO] Storing buildNumber: fddb742 at timestamp: 1379028572295
[INFO] Executing: /bin/sh -c cd /home/mdupont/experiments/elasticsearch && git rev-parse --verify HEAD
[INFO] Working directory: /home/mdupont/experiments/elasticsearch
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ elasticsearch ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ elasticsearch ---
[INFO] Compiling 36 source files to /home/mdupont/experiments/elasticsearch/target/classes
[INFO]
[INFO] --- forbiddenapis:1.3:check (check-forbidden-apis) @ elasticsearch ---
[INFO] Reading bundled API signatures: jdk-unsafe
[INFO] Reading bundled API signatures: jdk-deprecated
[INFO] Reading bundled API signatures: jdk-system-out
[INFO] Reading API signatures: /home/mdupont/experiments/elasticsearch/core-signatures.txt
[INFO] Loading classes to check...
[INFO] Scanning for API signatures and dependencies...
[INFO] Scanned 4599 (and 1154 related) class file(s) for forbidden API invocations (in 5.85s), 0 error(s).
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ elasticsearch ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 166 resources
[INFO] Copying 21 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ elasticsearch ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- forbiddenapis:1.3:testCheck (check-forbidden-test-apis) @ elasticsearch ---
[INFO] Reading bundled API signatures: jdk-unsafe
[INFO] Reading bundled API signatures: jdk-deprecated
[INFO] Loading classes to check...
[INFO] Scanning for API signatures and dependencies...
[INFO] Scanned 714 (and 1503 related) class file(s) for forbidden API invocations (in 1.36s), 0 error(s).
[INFO]
[INFO] --- maven-surefire-plugin:2.15:test (default-test) @ elasticsearch ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- junit4-maven-plugin:2.0.10:junit4 (tests) @ elasticsearch ---
[INFO] says ciao! Master seed: 23CD52CEE15D72
Executing 1 suite with 1 JVM.

Started J0 PID(19108@openlawrence.com).
Suite: org.elasticsearch.routing.SimpleRoutingTests
Completed in 12.90s, 1 test

[INFO] JVM J0: 0.76 .. 14.44 = 13.67s
[INFO] Execution time total: 14 seconds
[INFO] Tests summary: 1 suite, 1 test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.616s
[INFO] Finished at: Thu Sep 12 16:29:59 PDT 2013
[INFO] Final Memory: 21M/144M
[INFO] ------------------------------------------------------------------------

@h4ck3rm1k3
Copy link
Author

same for teh second. I will rerun all tests
/home/mdupont/experiments/maven/OME/experiments/maven/apache-maven-3.0-SNAPSHOT/bin/mvn test -Dtests.seed=23CD52CEE15D72 -Dtests.class=org.elasticsearch.search.simple.SimpleSearchTests -Dtests.method=simpleDateMathTests -Dtests.prefix=tests -Dtests.integration= -Dtests.nightly= -Dfile.encoding=UTF-8 -Duser.timezone=America/Los_Angeles
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building elasticsearch 1.0.0.Beta1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ elasticsearch ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ elasticsearch ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /home/mdupont/experiments/elasticsearch && git rev-parse --verify HEAD
[INFO] Working directory: /home/mdupont/experiments/elasticsearch
[INFO] Storing buildNumber: fddb742 at timestamp: 1379028675049
[INFO] Executing: /bin/sh -c cd /home/mdupont/experiments/elasticsearch && git rev-parse --verify HEAD
[INFO] Working directory: /home/mdupont/experiments/elasticsearch
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ elasticsearch ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ elasticsearch ---
[INFO] Compiling 36 source files to /home/mdupont/experiments/elasticsearch/target/classes
[INFO]
[INFO] --- forbiddenapis:1.3:check (check-forbidden-apis) @ elasticsearch ---
[INFO] Reading bundled API signatures: jdk-unsafe
[INFO] Reading bundled API signatures: jdk-deprecated
[INFO] Reading bundled API signatures: jdk-system-out
[INFO] Reading API signatures: /home/mdupont/experiments/elasticsearch/core-signatures.txt
[INFO] Loading classes to check...
[INFO] Scanning for API signatures and dependencies...
[INFO] Scanned 4599 (and 1154 related) class file(s) for forbidden API invocations (in 6.33s), 0 error(s).
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ elasticsearch ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 166 resources
[INFO] Copying 21 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ elasticsearch ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- forbiddenapis:1.3:testCheck (check-forbidden-test-apis) @ elasticsearch ---
[INFO] Reading bundled API signatures: jdk-unsafe
[INFO] Reading bundled API signatures: jdk-deprecated
[INFO] Loading classes to check...
[INFO] Scanning for API signatures and dependencies...
[INFO] Scanned 714 (and 1503 related) class file(s) for forbidden API invocations (in 1.13s), 0 error(s).
[INFO]
[INFO] --- maven-surefire-plugin:2.15:test (default-test) @ elasticsearch ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- junit4-maven-plugin:2.0.10:junit4 (tests) @ elasticsearch ---
[INFO] says ciao! Master seed: 23CD52CEE15D72
Executing 1 suite with 1 JVM.

Started J0 PID(19242@openlawrence.com).
Suite: org.elasticsearch.search.simple.SimpleSearchTests
Completed in 12.69s, 1 test

[INFO] JVM J0: 0.79 .. 14.19 = 13.40s
[INFO] Execution time total: 14 seconds
[INFO] Tests summary: 1 suite, 1 test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.343s
[INFO] Finished at: Thu Sep 12 16:31:42 PDT 2013
[INFO] Final Memory: 20M/143M
[INFO] ------------------------------------------------------------------------

@brwe
Copy link
Contributor

brwe commented Sep 13, 2013

Thanks a lot for taking the time to do this! It is too bad the failure is not reproducible. We will keep investigating and keep you posted in case we find anything related to the failure. Sorry for not having more information at the moment.

Please do not hesitate to paste any test failure logs here in the future, even if the logs are long.

@h4ck3rm1k3
Copy link
Author

well i tried to build with mvn test -X for debug and it never endedd, the
log was so huge and full of the same line repeated over and over

On Fri, Sep 13, 2013 at 9:24 AM, Britta Weber notifications@gitpro.ttaallkk.topwrote:

Thanks a lot for taking the time to do this! It is too bad the failure is
not reproducible. We will keep investigating and keep you posted in case we
find anything related to the failure. Sorry for not having more information
at the moment.

Please do not hesitate to paste any test failure logs here in the future,
even if the logs are long.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3674#issuecomment-24397986
.

James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3

@brwe
Copy link
Contributor

brwe commented Sep 14, 2013

could it be that this is similar to the line you are seeing:

HEARTBEAT J1 PID(862@brittas-MacBook-Pro.local): 2013-09-13T19:06:48, stalled for 203s at: SearchWithRandomExceptionsTests.testRandomExceptions

brwe added a commit that referenced this issue Sep 14, 2013
see #3694
Also, this might have caused one of the problems described in issue #3674
brwe added a commit that referenced this issue Sep 14, 2013
see #3694
Also, this might have caused one of the problems described in issue #3674
@h4ck3rm1k3
Copy link
Author

this is what it was full of, on smaller tests it produces only some of
these so I guess it is just verbose, but it really had a ton of them
[DEBUG] Packet received, slave#0>APPEND_STDOUT

On Sat, Sep 14, 2013 at 4:56 AM, Britta Weber notifications@gitpro.ttaallkk.topwrote:

could it be that this is similar to the line you are seeing:

HEARTBEAT J1 PID(862@brittas-MacBook-Pro.local): 2013-09-13T19:06:48,
stalled for 203s at: SearchWithRandomExceptionsTests.testRandomExceptions


Reply to this email directly or view it on GitHubhttps://github.com//issues/3674#issuecomment-24442111
.

James Michael DuPont
Member of Free Libre Open Source Software Kosova http://flossk.org
Saving wikipedia(tm) articles from deletion http://SpeedyDeletion.wikia.com
Contributor FOSM, the CC-BY-SA map of the world http://fosm.org
Mozilla Rep https://reps.mozilla.org/u/h4ck3rm1k3
Free Software Foundation Europe Fellow http://fsfe.org/support/?h4ck3rm1k3

@brwe
Copy link
Contributor

brwe commented Sep 17, 2013

SearchWithRandomExceptionsTests.testRandomExceptions has been fixed, see #3694

If that did not fix it, could you please provide the full log that contained the DEBUG line you pasted?

@kwince
Copy link

kwince commented Oct 11, 2013

I tried two times must 'mvn install' with no success with the error this thread is about. When I used only one JVM, it worked. Also, when I used the -X switch, and redirect the output to a text file, it works every time. So it's probably a timing issue. Using the -X switch probably slows it down enough to not have the timing issues.

So, I have no debug script to offer. Just that I have the problem. I'll probably use the 1.0.0 jar at some point with it compiling to success with -X switch.

@spinscale
Copy link
Contributor

@kwince if you just need to create a package and rather want to ignore the tests (dont get me wrong here, reporting test failures is perfectly valid and we are happy for that), you can run the packaging process without executing the tests via mvn -DskipTests=true package (you might know that already, just wanted to make sure you know in case you just want to play with the 1.0 snapshot zip/tar.gz archive).

Also if you can reproduce test failures, dont bother to put in some information including the seeds, so we can reproduce it with our randomized test architecture.

@kwince
Copy link

kwince commented Oct 11, 2013

I would love to help with feedback. All I now about is 'mvn install/compile/package/deploy'. All the other switches I've never used, until friday, when I used the 'one VM' switch.

Thank you for the skipTests switch.

The problem I have compiling 1.0.0 can't be reproduced the way I'm running it, when I ask for a debug output. It slows down the build just enough that the error does not happen. It's got to be some knind of race condition. I can't provide any feedback under these circumstances, right?

My original goal in compling ESearch was to find the 90.5 version and compile it. We are having the InetAddress Serializtion issue when we compile our project with Java 1.7, since your jars and zips are compiled with 1.6. We are having to downgrade our environments to 1.6 to get them running. I was hoping to test whether compiling Esearch with 1.7 would solve the problem (or find if the problem was in a dependency fo ESearch's).

 
Dennis Gearon

Never, ever approach a computer saying or even thinking "I will just do this quickly."


From: Alexander Reelsen notifications@github.com
To: elasticsearch/elasticsearch elasticsearch@noreply.github.com
Cc: Dennis Gearon gearond@sbcglobal.net
Sent: Friday, October 11, 2013 1:39 AM
Subject: Re: [elasticsearch] Lastest git master does not build clean (#3674)

@kwince if you just need to create a package and rather want to ignore the tests (dont get me wrong here, reporting test failures is perfectly valid and we are happy for that), you can run the packaging process without executing the tests via mvn -DskipTests=true package (you might know that already, just wanted to make sure you know in case you just want to play with the 1.0 snapshot zip/tar.gz archive).
Also if you can reproduce test failures, dont bother to put in some information including the seeds, so we can reproduce it with our randomized test architecture.

Reply to this email directly or view it on GitHub.

@spinscale
Copy link
Contributor

@kwince just as a reference

git checkout v0.90.5
mvn clean package -DskipTests=true

That should generate the same packages than on elasticsearch.org - however it does not really matter, if you build with java6 or java7 compiler as we are setting the compiled target java version to 1.6 in the pom.xml. Also if you change this to 1.7 your serialization problem would not have been solved, as you still use different JVMs to communicate during runtime (and this is where the problem occurs, not on compile time).

In the meantime we have continued our efforts to stabilize the tests further. If you run the tests yourself and you reliably manage to have a failing tests, please create a new github issue for this as well - which includes the mvn call to reproduce (we need a special call, which includes all the arguments needed to create the same setup for the randomized testing, this call is logged directly above the failed assertion of a failed test - or just include the full log).

Thanks to everyone for helping and notifying!

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
see elastic#3694
Also, this might have caused one of the problems described in issue elastic#3674
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants