tombentley commented on code in PR #12248:
URL: https://github.com/apache/kafka/pull/12248#discussion_r892498344
##########
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:
##########
@@ -2716,7 +2716,7 @@ private static Map<String, LogDirDescription>
logDirDescriptions(DescribeLogDirs
new ReplicaInfo(p.partitionSize(), p.offsetLag(),
p.isFutureKey()));
}
}
- result.put(logDirResult.logDir(), new
LogDirDescription(Errors.forCode(logDirResult.errorCode()).exception(),
replicaInfoMap));
+ result.put(logDirResult.logDir(), new
LogDirDescription(Errors.forCode(logDirResult.errorCode()).exception(),
replicaInfoMap, logDirResult.totalBytes(), logDirResult.usableBytes()));
Review Comment:
long line
##########
clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java:
##########
@@ -54,11 +64,21 @@ public Map<TopicPartition, ReplicaInfo> replicaInfos() {
return unmodifiableMap(replicaInfos);
}
+ public OptionalLong totalBytes() {
+ return totalBytes;
+ }
+
+ public OptionalLong usableBytes() {
Review Comment:
Javadoc
##########
clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java:
##########
@@ -54,11 +64,21 @@ public Map<TopicPartition, ReplicaInfo> replicaInfos() {
return unmodifiableMap(replicaInfos);
}
+ public OptionalLong totalBytes() {
Review Comment:
Javadoc
##########
clients/src/main/java/org/apache/kafka/clients/admin/LogDirDescription.java:
##########
@@ -54,11 +64,21 @@ public Map<TopicPartition, ReplicaInfo> replicaInfos() {
return unmodifiableMap(replicaInfos);
}
+ public OptionalLong totalBytes() {
+ return totalBytes;
+ }
+
+ public OptionalLong usableBytes() {
Review Comment:
Also do we want to say something about the contraints on usableBytes and
totalBytes (individually and compared with each other).
--
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]