This is an automated email from the ASF dual-hosted git repository.
ayegorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new f6f1623353 Disable annoying logs when segments is empty (#4048)
f6f1623353 is described below
commit f6f1623353d697e4922cedacd5a9cb1539a731f8
Author: Qiang Zhao <[email protected]>
AuthorDate: Fri May 31 07:52:57 2024 +0800
Disable annoying logs when segments is empty (#4048)
---
.../src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/stream/distributedlog/core/src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java
b/stream/distributedlog/core/src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java
index 77d67ec445..5ed3f3c4d9 100644
---
a/stream/distributedlog/core/src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java
+++
b/stream/distributedlog/core/src/main/java/org/apache/distributedlog/ReadAheadEntryReader.java
@@ -1014,6 +1014,9 @@ class ReadAheadEntryReader implements
if (!started.get()) {
return;
}
+ if (segments == null || segments.isEmpty()) {
+ return;
+ }
logger.info("segments is updated with {}", segments);
processLogSegments(segments);
}