# ElasticSearch test failures on Mac OS X

**URL:** <https://discuss.elastic.co/t/elasticsearch-test-failures-on-mac-os-x/3135>\
**Category:** Elasticsearch\
**Created:** [July 21, 2010, 11:39pm UTC](https://discuss.elastic.co/t/elasticsearch-test-failures-on-mac-os-x/3135 "2010-07-21T23:39:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jprante1](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jprante1](https://discuss.elastic.co/u/jprante1)\
**Post date:** [July 21, 2010, 11:39pm UTC](https://discuss.elastic.co/t/elasticsearch-test-failures-on-mac-os-x/3135/1 "2010-07-21T23:39:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:21am UTC](https://discuss.elastic.co/t/elasticsearch-test-failures-on-mac-os-x/3135/2 "2017-07-06T04:21:51Z")

</div>


