Skip to content

Commit

Permalink
add requestContextMap
Browse files Browse the repository at this point in the history
  • Loading branch information
andyyin committed Feb 13, 2017
1 parent 71b4235 commit 1797112
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void doStop() {

public Future<InvocationResponse> doProcessRequest(final InvocationRequest request,
final ProviderContext providerContext) {
// requestContextMap.put(request, providerContext);
requestContextMap.put(request, providerContext);

doMonitorData(request, providerContext);

Expand All @@ -201,7 +201,7 @@ public InvocationResponse call() throws Exception {
} catch (Throwable t) {
logger.error("Process request failed with invocation handler, you should never be here.", t);
} finally {
// requestContextMap.remove(request);
requestContextMap.remove(request);
}
return null;
}
Expand All @@ -213,7 +213,7 @@ public InvocationResponse call() throws Exception {
providerContext.getTimeline().add(new TimePoint(TimePhase.T));
return pool.submit(requestExecutor);
} catch (RejectedExecutionException e) {
// requestContextMap.remove(request);
requestContextMap.remove(request);
throw new RejectedException(getProcessorStatistics(pool), e);
}

Expand Down

0 comments on commit 1797112

Please sign in to comment.