@@ -179,10 +179,18 @@ private void assertMappingsMatchTemplates() throws IOException {
179
179
configIndexExceptions .add ("properties.last_data_time.type" );
180
180
configIndexExceptions .add ("properties.types.type" );
181
181
182
+ // Excluding those from stats index as some have been renamed and other removed.
183
+ Set <String > statsIndexException = new HashSet <>();
184
+ statsIndexException .add ("properties.hyperparameters.properties.regularization_depth_penalty_multiplier.type" );
185
+ statsIndexException .add ("properties.hyperparameters.properties.regularization_leaf_weight_penalty_multiplier.type" );
186
+ statsIndexException .add ("properties.hyperparameters.properties.regularization_soft_tree_depth_limit.type" );
187
+ statsIndexException .add ("properties.hyperparameters.properties.regularization_soft_tree_depth_tolerance.type" );
188
+ statsIndexException .add ("properties.hyperparameters.properties.regularization_tree_size_penalty_multiplier.type" );
189
+
182
190
assertLegacyTemplateMatchesIndexMappings (".ml-config" , ".ml-config" , false , configIndexExceptions );
183
191
// the true parameter means the index may not have been created
184
192
assertLegacyTemplateMatchesIndexMappings (".ml-meta" , ".ml-meta" , true , Collections .emptySet ());
185
- assertLegacyTemplateMatchesIndexMappings (".ml-stats" , ".ml-stats-000001" , true , Collections . emptySet () );
193
+ assertLegacyTemplateMatchesIndexMappings (".ml-stats" , ".ml-stats-000001" , true , statsIndexException );
186
194
assertLegacyTemplateMatchesIndexMappings (".ml-state" , ".ml-state-000001" );
187
195
assertLegacyTemplateMatchesIndexMappings (".ml-notifications-000001" , ".ml-notifications-000001" );
188
196
assertLegacyTemplateMatchesIndexMappings (".ml-inference-000003" , ".ml-inference-000003" , true , Collections .emptySet ());
0 commit comments