Skip to content

Shutting down a node stops the transport layer despite of ongoing indexing operations #12314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bleskes opened this issue Jul 17, 2015 · 2 comments
Labels
discuss :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can.

Comments

@bleskes
Copy link
Contributor

bleskes commented Jul 17, 2015

The current shutdown order is as follows:

        injector.getInstance(RestController.class).stop();
        injector.getInstance(TransportService.class).stop();

        for (Class<? extends LifecycleComponent> plugin : pluginsService.services()) {
            injector.getInstance(plugin).stop();
        }
        // we should stop this last since it waits for resources to get released
        // if we had scroll searchers etc or recovery going on we wait for to finish.
        injector.getInstance(IndicesService.class).stop();
        logger.info("stopped");

The means that the transport service is stopped before indices services, meaning that any ongoing write operation in IndicesService are blocked from the network and can't send requests. This can trigger #7572 .

IMHO we should do a best effort in flushing on going operations in IndicesService, block new one from starting and then and only then close the transport service. These days we have mechanics to do so. This does require careful thought.

@joune
Copy link

joune commented Jul 17, 2015

@spinscale spinscale added v2.3.0 and removed v2.2.0 labels Dec 23, 2015
@clintongormley clintongormley added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. and removed :Cluster labels Feb 13, 2018
@bleskes
Copy link
Contributor Author

bleskes commented Mar 20, 2018

I haven't seen a lot of issues of this in recent history. It's also a complex thing to do. Closing for now. If it bubbles up again we can reopen.

@bleskes bleskes closed this as completed Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can.
Projects
None yet
Development

No branches or pull requests

4 participants