michaelsembwever commented on a change in pull request #1152:
URL: https://github.com/apache/cassandra/pull/1152#discussion_r697243336
##########
File path: src/java/org/apache/cassandra/hints/HintsBuffer.java
##########
@@ -222,8 +234,13 @@ private void put(UUID hostId, int offset)
void write(Iterable<UUID> hostIds, Hint hint)
{
write(hint);
+ long ts = System.currentTimeMillis();
for (UUID hostId : hostIds)
+ {
+ // We only need the time of the first hint in the buffer
+ earliestHintByHost.putIfAbsent(hostId, ts);
Review comment:
```suggestion
if (DatabaseDescriptor.hintWindowPersistentEnabled())
earliestHintByHost.putIfAbsent(hostId, ts);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]