azotcsit commented on a change in pull request #1232:
URL: https://github.com/apache/cassandra/pull/1232#discussion_r720795450
##########
File path: src/java/org/apache/cassandra/hints/HintsService.java
##########
@@ -268,6 +269,31 @@ public synchronized void shutdownBlocking() throws
ExecutionException, Interrupt
bufferPool.close();
}
+ /**
+ * Returns all pending hints that this node has.
+ *
+ * @return a list of {@link PendingHintsInfo}
+ */
+ public List<PendingHintsInfo> getPendingHintsInfo()
+ {
+ return catalog.stores()
+ .filter(HintsStore::hasFiles)
+ .map(HintsStore::getPendingHintsInfo)
+ .collect(Collectors.toList());
+ }
+
+ /**
+ * Returns all pending hints that this node has.
+ *
+ * @return a list of maps with endpoints' ids, total number of hint files,
their oldest and newest timestamps.
+ */
+ public List<Map<String, String>> getPendingHints()
Review comment:
Ok, sounds reasonable to me.
--
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]