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

Maven Surefire Issue #2677

Closed
reevik opened this issue Feb 22, 2013 · 3 comments
Closed

Maven Surefire Issue #2677

reevik opened this issue Feb 22, 2013 · 3 comments
Assignees

Comments

@reevik
Copy link

reevik commented Feb 22, 2013

My integration test starts within the setUp() method a new elasticsearch "master" + "data" node and in the test method using client node i want to perform some operations on that master node. Everything runs without any problem if i run the test case within the Eclipse but as soon as i try to package my application and the tests are being run, i get following exception. The problem is that our CI server can not run these tests, too. Here is how i configure the server node:
map.put("cluster.name", clusterName);
map.put("node.name", "search-engine-test");
map.put("node.master", true);
map.put("node.data", true);
map.put("node.client", false);
map.put("node.gateway.type", "none");
map.put("node.http.enabled", true);
map.put("path.data", "target/elasticsearch");
map.put("index.number_of_shards", 1);
map.put("index.number_of_replicas", 0);
map.put("index.store.type", "memory");

and here is how the client node configured:
map.put("cluster.name", clusterName);
map.put("node.name", DEFAULT_NODE_NAME);
map.put("node.master", false);
map.put("node.data", false);
map.put("node.client", true);
map.put("discovery.zen.ping.multicast.enabled", false);
map.put("discovery.zen.ping.unicast.hosts", "127.0.0.1");

i appreciate your help !

Tests run: 49, Failures: 0, Errors: 24, Skipped: 0, Time elapsed: 6.648 sec <<< FAILURE!
all(de.guj.searchengine.domain.search.ElasticSearchQueryIntegrationTest) Time elapsed: 0.126 sec <<< ERROR!
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:138)
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.checkGlobalBlock(TransportIndicesStatusAction.java:103)
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.checkGlobalBlock(TransportIndicesStatusAction.java:59)
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$AsyncBroadcastAction.(TransportBroadcastOperationAction.java:136)
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction.doExecute(TransportBroadcastOperationAction.java:73)
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction.doExecute(TransportBroadcastOperationAction.java:44)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:61)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:47)
at org.elasticsearch.client.node.NodeIndicesAdminClient.execute(NodeIndicesAdminClient.java:64)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.status(AbstractIndicesAdminClient.java:333)

@drewr
Copy link
Contributor

drewr commented Mar 8, 2013

What happens if you add map.put("network.host", "127.0.0.1"); to the server configuration block?

@ghost ghost assigned spinscale May 24, 2013
@spinscale
Copy link
Contributor

hey,

do you still have this issue? Can you gist the whole test somewhere so we can take a closer look at it?

Also please close the issue, if it is no longer valid. Thanks!

@spinscale
Copy link
Contributor

Closing. Happy to reopen with more information provided.

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

3 participants