mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
register the future with teh listener when deleting an index, so it can be canceled
This commit is contained in:
parent
e40499f35f
commit
32127c4d73
@ -130,7 +130,7 @@ public class MetaDataDeleteIndexService extends AbstractComponent {
|
|||||||
};
|
};
|
||||||
nodeIndexDeletedAction.add(nodeIndexDeleteListener);
|
nodeIndexDeletedAction.add(nodeIndexDeleteListener);
|
||||||
|
|
||||||
threadPool.schedule(request.timeout, ThreadPool.Names.SAME, new Runnable() {
|
listener.future = threadPool.schedule(request.timeout, ThreadPool.Names.SAME, new Runnable() {
|
||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
listener.onResponse(new Response(false));
|
listener.onResponse(new Response(false));
|
||||||
nodeIndexDeletedAction.remove(nodeIndexDeleteListener);
|
nodeIndexDeletedAction.remove(nodeIndexDeleteListener);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user