Skip to content

Commit

Permalink
Percolate / Analyzer API can hang if it fails to execute, closes elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Nov 13, 2011
1 parent 86d552d commit a56947b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -142,6 +142,7 @@ private void performFirst() {
Response response = shardOperation(request, shard.id());
listener.onResponse(response);
} catch (Exception e) {
shardsIt.reset();
onFailure(shard, e);
}
}
Expand All @@ -153,6 +154,7 @@ private void performFirst() {
listener.onResponse(response);
return;
} catch (Exception e) {
shardsIt.reset();
onFailure(shard, e);
}
}
Expand Down Expand Up @@ -204,6 +206,8 @@ private void perform(final Exception lastException) {
onFailure(shard, e);
}
}
} else {
perform(lastException);
}
} else {
DiscoveryNode node = nodes.get(shard.currentNodeId());
Expand Down

0 comments on commit a56947b

Please sign in to comment.