mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Use ThreadPool.Names.SAME executor in stats and service apis.
Original commit: elastic/x-pack-elasticsearch@03c52668e0
This commit is contained in:
parent
f14fe49dfa
commit
af1d4ad79c
@ -35,7 +35,8 @@ public class TransportWatcherServiceAction extends WatcherTransportAction<Watche
|
||||
|
||||
@Override
|
||||
protected String executor() {
|
||||
return ThreadPool.Names.MANAGEMENT;
|
||||
// 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;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -42,7 +42,8 @@ public class TransportWatcherStatsAction extends WatcherTransportAction<WatcherS
|
||||
|
||||
@Override
|
||||
protected String executor() {
|
||||
return ThreadPool.Names.MANAGEMENT;
|
||||
// cheap operation, no need to fork into another thread
|
||||
return ThreadPool.Names.SAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user