rpuch commented on code in PR #7638:
URL: https://github.com/apache/ignite-3/pull/7638#discussion_r2828851732
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/logit/LogitLogStorageManager.java:
##########
@@ -127,6 +131,17 @@ public LogSyncer logSyncer() {
return new NoOpLogSyncer();
}
+ @Override
+ public long totalBytesOnDisk() {
+ try (Stream<Path> paths = Files.walk(logPath)) {
+ return paths.filter(Files::isRegularFile)
+ .mapToLong(path -> path.toFile().length())
+ .sum();
+ } catch (IOException e) {
+ throw new IgniteInternalException(INTERNAL_ERR, e);
+ }
+ }
Review Comment:
Logit is not production ready and will not be made production ready, so it
makes no sense to spend time writing tests for it
--
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]