OpenSearch/x-pack/plugin/transform/src
David Roberts 07a0140260
[ML-DataFrame] Ensure latest index template exists before indexing docs (#46595)
When upgrading data nodes to a newer version before
master nodes there was a risk that a transform running
on an upgraded data node would index a document into
the new transforms internal index before its index
template was created.  This would cause the index to
be created with entirely dynamic mappings.

This change introduces a check before indexing any
internal transforms document to ensure that the required
index template exists and create it if it doesn't.

Backport of #46553
2019-09-11 16:27:26 +01:00
..
main/java/org/elasticsearch/xpack/transform [ML-DataFrame] Ensure latest index template exists before indexing docs (#46595) 2019-09-11 16:27:26 +01:00
test/java/org/elasticsearch/xpack/transform [ML-DataFrame] Ensure latest index template exists before indexing docs (#46595) 2019-09-11 16:27:26 +01:00