Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Adds warning to the healthcheck when a migration is pending #30040
Since the index template was removed in #29268, we need to inform the user when they have done something to the index which requires a restart.
Here we wait until the migrations have been completed and check for pending required migrations with the health check.
To test you can delete the Kibana index after Kibana has started. You should begin to see warnings like the following:
This warning is currently limited to once every 30 seconds.
Feb 5, 2019
I wonder how expensive this check is? I'm not sure if we want to be doing it every 30 seconds, as I think it requires a full index scan. But I don't know much about this kind of thing.
It's also going to be permanently spammy in the case that someone has applied an index template that affects Kibana's mappings. Maybe I should get this PR moving forward: #28252
Maybe we can make it a less-frequent check?