dopuskh3 commented on code in PR #16210:
URL: https://github.com/apache/kafka/pull/16210#discussion_r1627848696
##########
core/src/main/java/kafka/log/remote/RemoteLogManager.java:
##########
@@ -842,7 +842,7 @@ private void copyLogSegment(UnifiedLog log, LogSegment
segment, long nextSegment
long bytesLag = log.onlyLocalLogSegmentsSize() -
log.activeSegment().size();
String topic = topicIdPartition.topic();
int partition = topicIdPartition.partition();
- long segmentsLag = log.onlyLocalLogSegmentsCount();
+ long segmentsLag = log.onlyLocalLogSegmentsCount() - 1;
Review Comment:
Will do 👍
--
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]