You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: