Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Sep 27, 2023
1 parent c99dae1 commit cbf856f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
*/
public final class MlIndexAndAlias {

/**
* ML managed index mappings used to be updated based on the product version.
* They are now updated based on per-index mappings versions. However, older
* nodes will still look for a product version in the mappings metadata, so
* we have to put <em>something</em> in that field that will allow the older
* node to realise that the mappings are ahead of what it knows about. The
* easiest solution is to hardcode 8.11.0 in this field, because any node
* from 8.10.0 onwards should be using per-index mappings versions to determine
* whether mappings are up-to-date.
*/
public static final String BWC_MAPPINGS_VERSION = "8.11.0";

private static final Logger logger = LogManager.getLogger(MlIndexAndAlias.class);
Expand Down

0 comments on commit cbf856f

Please sign in to comment.