add search id when failing to execute
This commit is contained in:
parent
71ece4e31c
commit
ded270fa03
|
@ -130,7 +130,7 @@ public class TransportSearchDfsQueryAndFetchAction extends TransportSearchTypeAc
|
|||
}
|
||||
}
|
||||
|
||||
private void executeSecondPhase(final AtomicInteger counter, DiscoveryNode node, QuerySearchRequest querySearchRequest) {
|
||||
private void executeSecondPhase(final AtomicInteger counter, DiscoveryNode node, final QuerySearchRequest querySearchRequest) {
|
||||
searchService.sendExecuteFetch(node, querySearchRequest, new SearchServiceListener<QueryFetchSearchResult>() {
|
||||
@Override public void onResult(QueryFetchSearchResult result) {
|
||||
queryFetchResults.put(result.shardTarget(), result);
|
||||
|
@ -141,7 +141,7 @@ public class TransportSearchDfsQueryAndFetchAction extends TransportSearchTypeAc
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute query phase", t);
|
||||
logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id());
|
||||
}
|
||||
AsyncAction.this.shardFailures.add(new ShardSearchFailure(t));
|
||||
successulOps.decrementAndGet();
|
||||
|
|
|
@ -137,7 +137,7 @@ public class TransportSearchDfsQueryThenFetchAction extends TransportSearchTypeA
|
|||
}
|
||||
}
|
||||
|
||||
private void executeQuery(final AtomicInteger counter, QuerySearchRequest querySearchRequest, DiscoveryNode node) {
|
||||
private void executeQuery(final AtomicInteger counter, final QuerySearchRequest querySearchRequest, DiscoveryNode node) {
|
||||
searchService.sendExecuteQuery(node, querySearchRequest, new SearchServiceListener<QuerySearchResult>() {
|
||||
@Override public void onResult(QuerySearchResult result) {
|
||||
queryResults.put(result.shardTarget(), result);
|
||||
|
@ -148,7 +148,7 @@ public class TransportSearchDfsQueryThenFetchAction extends TransportSearchTypeA
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute query phase", t);
|
||||
logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id());
|
||||
}
|
||||
AsyncAction.this.shardFailures.add(new ShardSearchFailure(t));
|
||||
successulOps.decrementAndGet();
|
||||
|
@ -222,7 +222,7 @@ public class TransportSearchDfsQueryThenFetchAction extends TransportSearchTypeA
|
|||
}
|
||||
}
|
||||
|
||||
private void executeFetch(final AtomicInteger counter, FetchSearchRequest fetchSearchRequest, DiscoveryNode node) {
|
||||
private void executeFetch(final AtomicInteger counter, final FetchSearchRequest fetchSearchRequest, DiscoveryNode node) {
|
||||
searchService.sendExecuteFetch(node, fetchSearchRequest, new SearchServiceListener<FetchSearchResult>() {
|
||||
@Override public void onResult(FetchSearchResult result) {
|
||||
fetchResults.put(result.shardTarget(), result);
|
||||
|
@ -233,7 +233,7 @@ public class TransportSearchDfsQueryThenFetchAction extends TransportSearchTypeA
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute fetch phase", t);
|
||||
logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id());
|
||||
}
|
||||
AsyncAction.this.shardFailures.add(new ShardSearchFailure(t));
|
||||
successulOps.decrementAndGet();
|
||||
|
|
|
@ -137,7 +137,7 @@ public class TransportSearchQueryThenFetchAction extends TransportSearchTypeActi
|
|||
}
|
||||
}
|
||||
|
||||
private void executeFetch(final AtomicInteger counter, FetchSearchRequest fetchSearchRequest, DiscoveryNode node) {
|
||||
private void executeFetch(final AtomicInteger counter, final FetchSearchRequest fetchSearchRequest, DiscoveryNode node) {
|
||||
searchService.sendExecuteFetch(node, fetchSearchRequest, new SearchServiceListener<FetchSearchResult>() {
|
||||
@Override public void onResult(FetchSearchResult result) {
|
||||
fetchResults.put(result.shardTarget(), result);
|
||||
|
@ -148,7 +148,7 @@ public class TransportSearchQueryThenFetchAction extends TransportSearchTypeActi
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute fetch phase", t);
|
||||
logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id());
|
||||
}
|
||||
AsyncAction.this.shardFailures.add(new ShardSearchFailure(t));
|
||||
successulOps.decrementAndGet();
|
||||
|
|
|
@ -171,7 +171,7 @@ public class TransportSearchScrollQueryAndFetchAction extends AbstractComponent
|
|||
}
|
||||
}
|
||||
|
||||
private void executePhase(DiscoveryNode node, long searchId) {
|
||||
private void executePhase(DiscoveryNode node, final long searchId) {
|
||||
searchService.sendExecuteFetch(node, internalScrollSearchRequest(searchId, request), new SearchServiceListener<QueryFetchSearchResult>() {
|
||||
@Override public void onResult(QueryFetchSearchResult result) {
|
||||
queryFetchResults.put(result.shardTarget(), result);
|
||||
|
@ -182,7 +182,7 @@ public class TransportSearchScrollQueryAndFetchAction extends AbstractComponent
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute query phase", t);
|
||||
logger.debug("[{}] Failed to execute query phase", t, searchId);
|
||||
}
|
||||
shardFailures.add(new ShardSearchFailure(t));
|
||||
successfulOps.decrementAndGet();
|
||||
|
|
|
@ -163,7 +163,7 @@ public class TransportSearchScrollQueryThenFetchAction extends AbstractComponent
|
|||
}
|
||||
}
|
||||
|
||||
private void executeQueryPhase(final AtomicInteger counter, DiscoveryNode node, long searchId) {
|
||||
private void executeQueryPhase(final AtomicInteger counter, DiscoveryNode node, final long searchId) {
|
||||
searchService.sendExecuteQuery(node, internalScrollSearchRequest(searchId, request), new SearchServiceListener<QuerySearchResult>() {
|
||||
@Override public void onResult(QuerySearchResult result) {
|
||||
queryResults.put(result.shardTarget(), result);
|
||||
|
@ -174,7 +174,7 @@ public class TransportSearchScrollQueryThenFetchAction extends AbstractComponent
|
|||
|
||||
@Override public void onFailure(Throwable t) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Failed to execute query phase", t);
|
||||
logger.debug("[{}] Failed to execute query phase", t, searchId);
|
||||
}
|
||||
shardFailures.add(new ShardSearchFailure(t));
|
||||
successfulOps.decrementAndGet();
|
||||
|
|
Loading…
Reference in New Issue