Revert TP SAME change for the service api

Original commit: elastic/x-pack-elasticsearch@f7e52fda96
This commit is contained in:
Martijn van Groningen 2015-05-13 14:03:10 +02:00
parent af1d4ad79c
commit aba3f8f34c
1 changed files with 4 additions and 2 deletions

View File

@ -35,8 +35,10 @@ public class TransportWatcherServiceAction extends WatcherTransportAction<Watche
@Override
protected String executor() {
// We should always be able to stop or restart the watcher service, even if the a TP is exhausted, so don't fork into another thread:
return ThreadPool.Names.SAME;
// Ideally we should use SAME TP here, because we should always be able to stop Watcher even if management TP has been exhausted,
// but we can't use SAME TP here, because certain parts of the start process can't be executed on a transport thread.
// ( put template, or anything client related with #actionGet() )
return ThreadPool.Names.MANAGEMENT;
}
@Override