Hi,
I am building elasticsearch 0.8.0 from source on a Mac OS X Leopard
(PPC) using JDK 5 (yes, JDK 5, JDK 6 is not available) with NetBeans
and Maven.
After some tweaks and backports, the code is building, but I'm
struggling with the following test failures.
I would appreciate it if someone could comment on them, if the
failures are harmless or not, and what I could do to fix or work
around them.
All other tests pass (well, I did not run the integration tests yet,
so other issues may be encountered later). These are excerpts from the
surefire logs.
testFailures(org.elasticsearch.cluster.routing.strategy.FailedShardsRoutingTests)
Time elapsed: 0.086 sec <<< FAILURE!
java.lang.AssertionError:
Expected: "node1"
got: "node2"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:
21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at
org.elasticsearch.cluster.routing.strategy.FailedShardsRoutingTests.testFailures(FailedShardsRoutingTests.java:
91)
testSingleIndexFirstStartPrimaryThenBackups(org.elasticsearch.cluster.routing.strategy.TenShardsOneBackupRoutingTests)
Time elapsed: 0.014 sec <<< FAILURE!
java.lang.AssertionError:
Expected: <8>
got: <6>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:
21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at
org.elasticsearch.cluster.routing.strategy.TenShardsOneBackupRoutingTests.testSingleIndexFirstStartPrimaryThenBackups(TenShardsOneBackupRoutingTests.java:
180)
testClusterStateSerialization(org.elasticsearch.cluster.serialization.ClusterSerializationTests)
Time elapsed: 0.019 sec <<< FAILURE!
java.lang.AssertionError:
Expected: "Routing Table:\n-- Index[test]\n----ShardId[test]
[2]\n--------[test][2], Node[node2], [P], S[INITIALIZING]\n--------
[test][2], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[4]\n--------[test][4], Node[node2], [B], S[INITIALIZING]\n--------
[test][4], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[9]\n--------[test][9], Node[node3], [P], S[INITIALIZING]\n--------
[test][9], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[8]\n--------[test][8], Node[node2], [P], S[INITIALIZING]\n--------
[test][8], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[6]\n--------[test][6], Node[node2], [B], S[INITIALIZING]\n--------
[test][6], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[1]\n--------[test][1], Node[node3], [P], S[INITIALIZING]\n--------
[test][1], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[3]\n--------[test][3], Node[node2], [P], S[INITIALIZING]\n--------
[test][3], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[7]\n--------[test][7], Node[node2], [B], S[INITIALIZING]\n--------
[test][7], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[5]\n--------[test][5], Node[node3], [P], S[INITIALIZING]\n--------
[test][5], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[0]\n--------[test][0], Node[node2], [P], S[INITIALIZING]\n--------
[test][0], Node[node3], [B], S[INITIALIZING]\n\n"
got: "Routing Table:\n-- Index[test]\n----ShardId[test]
[2]\n--------[test][2], Node[node2], [P], S[INITIALIZING]\n--------
[test][2], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[4]\n--------[test][4], Node[node2], [B], S[INITIALIZING]\n--------
[test][4], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[8]\n--------[test][8], Node[node2], [P], S[INITIALIZING]\n--------
[test][8], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[9]\n--------[test][9], Node[node3], [P], S[INITIALIZING]\n--------
[test][9], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[6]\n--------[test][6], Node[node2], [B], S[INITIALIZING]\n--------
[test][6], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[1]\n--------[test][1], Node[node3], [P], S[INITIALIZING]\n--------
[test][1], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[3]\n--------[test][3], Node[node2], [P], S[INITIALIZING]\n--------
[test][3], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[7]\n--------[test][7], Node[node2], [B], S[INITIALIZING]\n--------
[test][7], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[5]\n--------[test][5], Node[node3], [P], S[INITIALIZING]\n--------
[test][5], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[0]\n--------[test][0], Node[node2], [P], S[INITIALIZING]\n--------
[test][0], Node[node3], [B], S[INITIALIZING]\n\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:
21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at
org.elasticsearch.cluster.serialization.ClusterSerializationTests.testClusterStateSerialization(ClusterSerializationTests.java:
64)
testRoutingTableSerialization(org.elasticsearch.cluster.serialization.ClusterSerializationTests)
Time elapsed: 0.003 sec <<< FAILURE!
java.lang.AssertionError:
Expected: "Routing Table:\n-- Index[test]\n----ShardId[test]
[2]\n--------[test][2], Node[node2], [P], S[INITIALIZING]\n--------
[test][2], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[4]\n--------[test][4], Node[node2], [B], S[INITIALIZING]\n--------
[test][4], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[9]\n--------[test][9], Node[node3], [P], S[INITIALIZING]\n--------
[test][9], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[8]\n--------[test][8], Node[node2], [P], S[INITIALIZING]\n--------
[test][8], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[6]\n--------[test][6], Node[node2], [B], S[INITIALIZING]\n--------
[test][6], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[1]\n--------[test][1], Node[node3], [P], S[INITIALIZING]\n--------
[test][1], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[3]\n--------[test][3], Node[node2], [P], S[INITIALIZING]\n--------
[test][3], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[7]\n--------[test][7], Node[node2], [B], S[INITIALIZING]\n--------
[test][7], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[5]\n--------[test][5], Node[node3], [P], S[INITIALIZING]\n--------
[test][5], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[0]\n--------[test][0], Node[node2], [P], S[INITIALIZING]\n--------
[test][0], Node[node3], [B], S[INITIALIZING]\n\n"
got: "Routing Table:\n-- Index[test]\n----ShardId[test]
[2]\n--------[test][2], Node[node2], [P], S[INITIALIZING]\n--------
[test][2], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[4]\n--------[test][4], Node[node2], [B], S[INITIALIZING]\n--------
[test][4], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[8]\n--------[test][8], Node[node2], [P], S[INITIALIZING]\n--------
[test][8], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[9]\n--------[test][9], Node[node3], [P], S[INITIALIZING]\n--------
[test][9], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[6]\n--------[test][6], Node[node2], [B], S[INITIALIZING]\n--------
[test][6], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[1]\n--------[test][1], Node[node3], [P], S[INITIALIZING]\n--------
[test][1], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[3]\n--------[test][3], Node[node2], [P], S[INITIALIZING]\n--------
[test][3], Node[node3], [B], S[INITIALIZING]\n----ShardId[test]
[7]\n--------[test][7], Node[node2], [B], S[INITIALIZING]\n--------
[test][7], Node[node1], [P], S[INITIALIZING]\n----ShardId[test]
[5]\n--------[test][5], Node[node3], [P], S[INITIALIZING]\n--------
[test][5], Node[node1], [B], S[INITIALIZING]\n----ShardId[test]
[0]\n--------[test][0], Node[node2], [P], S[INITIALIZING]\n--------
[test][0], Node[node3], [B], S[INITIALIZING]\n\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:
21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at
org.elasticsearch.cluster.serialization.ClusterSerializationTests.testRoutingTableSerialization(ClusterSerializationTests.java:
89)
testCleanThreadLocals(org.elasticsearch.util.ThreadLocalsTests) Time
elapsed: 0.014 sec <<< FAILURE!
java.lang.AssertionError:
Expected: <0>
got: <1>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:
21)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at
org.elasticsearch.util.ThreadLocalsTests.testCleanThreadLocals(ThreadLocalsTests.java:
46)
Thanks for your patience and best regards,
Jörg