Prevent watcher from failing to start if its templates are missing#82395
Conversation
|
Notes on testing: The data stream is immediately recreated but the template is not. If I restart the server, I can see that the template is still missing and the watcher service failed to start up (before the fix): I applied the fix in this PR, and then confirmed that the watcher service came up, and that the |
| @@ -139,8 +139,7 @@ public boolean validate(ClusterState state) { | |||
| // template check makes only sense for non existing indices, we could refine this | |||
| boolean hasValidWatcherTemplates = WatcherIndexTemplateRegistry.validate(state); | |||
There was a problem hiding this comment.
I think we can remove this check entirely from here since it also checked on reload.
There was a problem hiding this comment.
Is it not worth doing the check for the debug log? I thought it might be useful so I left it. But I've never done any troubleshooting on this.
There was a problem hiding this comment.
possibly..but this happens on the cluster state listener thread and less work done there the better.
|
Pinging @elastic/es-data-management (Team:Data Management) |
…stic#82395) This commit prevents watcher from failing to start if its templates are unavailable. Previously the watcher service would fail to start if (for example) the .watch-history-14 template did not exist. This could happen during a rolling upgrade. In that case, the watcher service would fail to start even though it could reasonably keep writing without its templates. Relates elastic#69328 elastic#82109
…stic#82395) This commit prevents watcher from failing to start if its templates are unavailable. Previously the watcher service would fail to start if (for example) the .watch-history-14 template did not exist. This could happen during a rolling upgrade. In that case, the watcher service would fail to start even though it could reasonably keep writing without its templates. Relates elastic#69328 elastic#82109
) (#82573) This commit prevents watcher from failing to start if its templates are unavailable. Previously the watcher service would fail to start if (for example) the .watch-history-14 template did not exist. This could happen during a rolling upgrade. In that case, the watcher service would fail to start even though it could reasonably keep writing without its templates. Relates #69328 #82109
) (#82572) This commit prevents watcher from failing to start if its templates are unavailable. Previously the watcher service would fail to start if (for example) the .watch-history-14 template did not exist. This could happen during a rolling upgrade. In that case, the watcher service would fail to start even though it could reasonably keep writing without its templates. Relates #69328 #82109
This commit prevents watcher from failing to start if its templates are unavailable. Previously the watcher service
would fail to start if (for example) the
.watch-history-14template did not exist. This could happen during a rollingupgrade. In that case, the watcher service would fail to start even though it could reasonably keep writing without its
templates.