File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -823,8 +823,13 @@ protected void extractMetaFromEntryLogs() throws EntryLogMetadataMapException {
823823 entryLogMetaMap .put (entryLogId , entryLogMeta );
824824 }
825825 } catch (IOException | RuntimeException e ) {
826- LOG .warn ("Premature exception when processing " + entryLogId
827- + " recovery will take care of the problem" , e );
826+ LOG .warn ("Premature exception when processing {} recovery will take care of the problem" ,
827+ entryLogId , e );
828+ } catch (OutOfMemoryError oome ) {
829+ // somewhat similar to https://github.com/apache/bookkeeper/pull/3901
830+ // entrylog file can be corrupted but instead having a negative entry size
831+ // it ends up with very large value for the entry size causing OODME
832+ LOG .warn ("OutOfMemoryError when processing {} - skipping the entry log" , entryLogId , oome );
828833 }
829834 }
830835 }
You can’t perform that action at this time.
0 commit comments