Make ShrinkStep copy settings to shrunken index
ShrinkStep now uses `copySettings = true` for the Shrink request, which
is the default behavior for all Shrink requests in 7.0. This is
necessary for `index.blocks.write` (aka read-only`) to be applied to the
new, shrunken index.
@@ -55,6 +55,7 @@ public class ShrinkStep extends AsyncActionStep {
String shrunkenIndexName = shrunkIndexPrefix + indexMetaData.getIndex().getName();
ResizeRequest resizeRequest = new ResizeRequest(shrunkenIndexName, indexMetaData.getIndex().getName());
+ resizeRequest.setCopySettings(true);
indexMetaData.getAliases().values().spliterator().forEachRemaining(aliasMetaDataObjectCursor -> {
resizeRequest.getTargetIndexRequest().alias(new Alias(aliasMetaDataObjectCursor.value.alias()));
});
