Closed
Description
It has been impossible to add a new index template with multiple mapping types since version 6.0, and creating an index that matches an index template containing multiple mapping types has failed with an error since 7.0. However, because index templates are preserved over rolling upgrades, it is still possible to have a cluster state that contains such a template. In 8.0, with types being removed entirely, it will not be possible to preserve these.
Since #50982 we have emitted warnings on startup when a node finds an index template with multiple mappings. A node running elasticsearch 8.0 or higher should refuse to join a cluster that contains one of these templates.