From 8c69f85502348e13cf269d81e7d157bea21b99c4 Mon Sep 17 00:00:00 2001 From: Stefan Miklosovic Date: Mon, 20 Nov 2023 10:25:54 +0100 Subject: [PATCH] ninja fix CASSANDRA-19002: Set gcgs in HintsMaker to Integer.MAX_VALUE HintsMaker was creating hint files which ttl'ed after 10 days which started to fail the tests. By setting it explicitly to Integer.MAX_VALUE, newly generated hint files will expire in cca 68 years. Branches 3.0 to trunk introduce the fix to HintsMaker. Branches 5.0 and trunk contain regenerated hint files as well. --- test/unit/org/apache/cassandra/hints/HintsMaker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/org/apache/cassandra/hints/HintsMaker.java b/test/unit/org/apache/cassandra/hints/HintsMaker.java index aeaf65e85b..2a7dbe81ed 100644 --- a/test/unit/org/apache/cassandra/hints/HintsMaker.java +++ b/test/unit/org/apache/cassandra/hints/HintsMaker.java @@ -186,7 +186,7 @@ public class HintsMaker { while (session.position() < maxLength && mutationIterator.hasNext()) { - Hint hint = Hint.create(mutationIterator.next(), System.currentTimeMillis()); + Hint hint = Hint.create(mutationIterator.next(), System.currentTimeMillis(), Integer.MAX_VALUE); session.append(hint); }