better exception handling when building the search response

This commit is contained in:
Shay Banon 2013-08-16 01:10:38 +02:00
parent a16d1142a3
commit fdd5e53aa7
3 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ public class TransportSearchDfsQueryAndFetchAction extends TransportSearchTypeAc
void finishHim() {
try {
innerFinishHim();
} catch (Exception e) {
} catch (Throwable e) {
ReduceSearchPhaseException failure = new ReduceSearchPhaseException("query_fetch", "", e, buildShardFailures());
if (logger.isDebugEnabled()) {
logger.debug("failed to reduce search", failure);

View File

@ -170,7 +170,7 @@ public class TransportSearchQueryThenFetchAction extends TransportSearchTypeActi
void finishHim() {
try {
innerFinishHim();
} catch (Exception e) {
} catch (Throwable e) {
ReduceSearchPhaseException failure = new ReduceSearchPhaseException("fetch", "", e, buildShardFailures());
if (logger.isDebugEnabled()) {
logger.debug("failed to reduce search", failure);

View File

@ -229,7 +229,7 @@ public class TransportSearchScrollScanAction extends AbstractComponent {
private void finishHim() {
try {
innerFinishHim();
} catch (Exception e) {
} catch (Throwable e) {
ReduceSearchPhaseException failure = new ReduceSearchPhaseException("fetch", "", e, buildShardFailures());
if (logger.isDebugEnabled()) {
logger.debug("failed to reduce search", failure);