From 30abd58fd5cd0613aca75410e47ea713d871c18a Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Fri, 1 Feb 2019 22:06:13 -0500 Subject: [PATCH] FIx testReplicaIgnoresOlderRetentionLeasesVersion --- .../index/seqno/ReplicationTrackerRetentionLeaseTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/index/seqno/ReplicationTrackerRetentionLeaseTests.java b/server/src/test/java/org/elasticsearch/index/seqno/ReplicationTrackerRetentionLeaseTests.java index e1bc51ab54f36..da41e4485301b 100644 --- a/server/src/test/java/org/elasticsearch/index/seqno/ReplicationTrackerRetentionLeaseTests.java +++ b/server/src/test/java/org/elasticsearch/index/seqno/ReplicationTrackerRetentionLeaseTests.java @@ -340,8 +340,8 @@ public void testReplicaIgnoresOlderRetentionLeasesVersion() { for (int j = 0; j < innerLength; j++) { leases.add( new RetentionLease(i + "-" + j, randomNonNegativeLong(), randomNonNegativeLong(), randomAlphaOfLength(8))); - version++; } + version++; if (rarely()) { primaryTerm++; }