From 148389bfffc11f59923661553ff81d5c66d685a0 Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Wed, 9 Jul 2025 16:04:35 -0500 Subject: [PATCH] Making sure we never have zero backing indices (#130945) --- .../xpack/deprecation/DataStreamDeprecationCheckerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java index 3c0ef84cb6193..755f9adeb4ce1 100644 --- a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java +++ b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/DataStreamDeprecationCheckerTests.java @@ -77,7 +77,7 @@ public void testOldIndicesCheck() { public void testOldIndicesCheckWithOnlyNewIndices() { // This tests what happens when any old indices that we have are closed. We expect no deprecation warning. - int newOpenIndexCount = randomIntBetween(0, 100); + int newOpenIndexCount = randomIntBetween(1, 100); int newClosedIndexCount = randomIntBetween(0, 100); Map nameToIndexMetadata = new HashMap<>();