summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/action/ingest
diff options
context:
space:
mode:
authorSimon Willnauer <simon.willnauer@elasticsearch.com>2016-10-24 13:57:07 +0200
committerGitHub <noreply@github.com>2016-10-24 13:57:07 +0200
commit0a410d3916b33440db1c4d9189cbf5b855c233d5 (patch)
tree1008ed99b229d49ae6f4ed74400e7e2eb996463d /core/src/test/java/org/elasticsearch/action/ingest
parent127b4a8efc15c4f29bc3cb645149d9852f12e526 (diff)
Pass executor name to request interceptor to support async intercept calls (#21089)
Today the request interceptor can't support async calls since the response of the async call would execute on a different thread ie. a client or listener thread. This means in-turn that the intercepted handler is not executed with the thread it was supposed to run and therefor can, if it's executing blocking operations, potentially deadlock an entire server.
Diffstat (limited to 'core/src/test/java/org/elasticsearch/action/ingest')
-rw-r--r--core/src/test/java/org/elasticsearch/action/ingest/IngestProxyActionFilterTests.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/src/test/java/org/elasticsearch/action/ingest/IngestProxyActionFilterTests.java b/core/src/test/java/org/elasticsearch/action/ingest/IngestProxyActionFilterTests.java
index 5190f7e12c..85240c4a8e 100644
--- a/core/src/test/java/org/elasticsearch/action/ingest/IngestProxyActionFilterTests.java
+++ b/core/src/test/java/org/elasticsearch/action/ingest/IngestProxyActionFilterTests.java
@@ -268,15 +268,4 @@ public class IngestProxyActionFilterTests extends ESTestCase {
assertTrue(run.get());
}
-
- private static class IngestNodeMatcher extends CustomTypeSafeMatcher<DiscoveryNode> {
- private IngestNodeMatcher() {
- super("discovery node should be an ingest node");
- }
-
- @Override
- protected boolean matchesSafely(DiscoveryNode node) {
- return node.isIngestNode();
- }
- }
}