diff --git a/core/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java b/core/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java index aeb2fe78dfe..de88801825a 100644 --- a/core/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java +++ b/core/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java @@ -61,7 +61,7 @@ import static java.util.Collections.unmodifiableList; */ public class TransportRolloverAction extends TransportMasterNodeAction { - private static final Pattern INDEX_NAME_PATTERN = Pattern.compile("^.*-(\\d)+$"); + private static final Pattern INDEX_NAME_PATTERN = Pattern.compile("^.*-\\d+$"); private final MetaDataCreateIndexService createIndexService; private final MetaDataIndexAliasesService indexAliasesService; private final ActiveShardsObserver activeShardsObserver; @@ -186,7 +186,7 @@ public class TransportRolloverAction extends TransportMasterNodeAction" : ""); return newName; } else { - throw new IllegalArgumentException("index name [" + sourceIndexName + "] does not match pattern '^.*-(\\d)+$'"); + throw new IllegalArgumentException("index name [" + sourceIndexName + "] does not match pattern '^.*-\\d+$'"); } }