Skip to content

Commit

Permalink
Gateway: failure to update the cluster state with the recovered state…
Browse files Browse the repository at this point in the history
… should make sure it will be recovered later

We currently fail to follow the right failure paths.

See http://build-us-00.elastic.co/job/es_core_master_window-2008/2477/

Closes #14485
  • Loading branch information
bleskes committed Nov 4, 2015
1 parent 8eff4e2 commit efde8e8
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -20,12 +20,7 @@
package org.elasticsearch.gateway;

import com.carrotsearch.hppc.cursors.ObjectCursor;

import org.elasticsearch.cluster.ClusterChangedEvent;
import org.elasticsearch.cluster.ClusterService;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.ClusterStateListener;
import org.elasticsearch.cluster.ClusterStateUpdateTask;
import org.elasticsearch.cluster.*;
import org.elasticsearch.cluster.block.ClusterBlock;
import org.elasticsearch.cluster.block.ClusterBlockLevel;
import org.elasticsearch.cluster.block.ClusterBlocks;
Expand Down Expand Up @@ -264,6 +259,7 @@ public ClusterState execute(ClusterState currentState) {
@Override
public void onFailure(String source, Throwable t) {
logger.error("unexpected failure during [{}]", t, source);
GatewayRecoveryListener.this.onFailure("failed to updated cluster state");
}

@Override
Expand Down

0 comments on commit efde8e8

Please sign in to comment.