You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "dlg99 (via GitHub)" <gi...@apache.org> on 2024/05/30 20:58:39 UTC
Re: [PR] Disable annoying logs when segments is empty [bookkeeper]
dlg99 commented on code in PR #4048:
URL: https://github.com/apache/bookkeeper/pull/4048#discussion_r1621422032
##########
stream/distributedlog/core/src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java:
##########
@@ -1014,6 +1014,9 @@ public void onSegmentsUpdated(List<LogSegmentMetadata> segments) {
if (!started.get()) {
return;
}
+ if (segments == null || segments.isEmpty()) {
+ return;
+ }
logger.info("segments is updated with {}", segments);
processLogSegments(segments);
Review Comment:
processLogSegments seems to do nothing in case of empty segments List
--
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: commits-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org