Skip to content

Commit

Permalink
ninja fix CASSANDRA-19002: Set gcgs in HintsMaker to Integer.MAX_VALUE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
smiklosovic committed Nov 20, 2023
1 parent d41afac commit 8c69f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/org/apache/cassandra/hints/HintsMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private void makeHintFile(File dir,
{
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);
}

Expand Down

0 comments on commit 8c69f85

Please sign in to comment.