Maxwell-Guo commented on code in PR #2983:
URL: https://github.com/apache/cassandra/pull/2983#discussion_r1427597722
##########
src/java/org/apache/cassandra/utils/FBUtilities.java:
##########
@@ -1320,4 +1370,59 @@ public static void closeQuietly(Object o)
logger.warn("Closing {} had an unexpected exception", o, e);
}
}
+
+ public static Semver getKernelVersion()
+ {
+ return kernelVersionSupplier.get();
+ }
+
+ @VisibleForTesting
+ static Semver getKernelVersionFromUname()
+ {
+ if (!isLinux)
+ return null;
+
+ try
+ {
+ String output = exec(Map.of(), Duration.ofSeconds(5), 1024, 1024,
"uname", "-r");
Review Comment:
do we need to add a TODO here if oshi is ready ?
--
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]