From e00626fe3f3454a727a82b884d125a29d9eda2ae 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 6f1853eaeed68..bf314d405f139 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 @@ -78,7 +78,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<>();