SecurityMigrationExecutor and SystemIndexMigrationExecutor should not be persistent tasks
#146.662 aberto em 17 de abr. de 2026
Métricas do repositório
- Stars
- (76.700 stars)
- Métricas de merge de PR
- (Mesclagem média 2d) (1.000 fundiu PRs em 30d)
Description
Both SecurityMigrationExecutor and SystemIndexMigrationExecutor are run-to-completion one-shot migration tasks rather than continuously-running services.
They do not "persist" in any meaningful sense, instead they have some external retry mechanism, so it seems that they would better fit as just regular transport actions instead.
Refactoring those task to not be persistent tasks would also get us one step closer to removing the automaticReassignmentOnShutdown() persistent task executor flag (see https://github.com/elastic/elasticsearch/issues/138565) and making this feature default everywhere.
See: https://github.com/elastic/elasticsearch/pull/145753 for more details