[
https://issues.apache.org/jira/browse/BOOKKEEPER-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272270#comment-13272270
]
Flavio Junqueira commented on BOOKKEEPER-251:
---------------------------------------------
Sijie, Could you comment a bit on how we reach this situation? I'm not entirely
sure what the expected behavior is here. If the file has been
garbage-collected, then why are we going over it again? Can we remember somehow
what we have already garbage-collected?
We probably want to fix the log messages too. Messages like this do not a very
good hint of what is going on:
{noformat}
2012-05-09 15:58:52,743 - WARN
[GarbageCollectorThread:GarbageCollectorThread@473] - Premature exception when
processing 0recovery will take care of the problem
{noformat}
> Noise error message printed when scanning entry log files those have been
> garbage collected.
> --------------------------------------------------------------------------------------------
>
> Key: BOOKKEEPER-251
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-251
> Project: Bookkeeper
> Issue Type: Improvement
> Components: bookkeeper-server
> Affects Versions: 4.1.0
> Reporter: Sijie Guo
> Assignee: Sijie Guo
> Fix For: 4.1.0
>
> Attachments: BK-251.diff
>
>
> currently, due to the messy scan mechanism deployed by garbage collector
> thread. following noise error message would be printed when scanning those
> entry log files has been garbage collected.
> {quote}
> 2012-05-09 15:58:52,742 - INFO
> [GarbageCollectorThread:GarbageCollectorThread@466] - Extracting entry log
> meta from entryLogId: 0
> 2012-05-09 15:58:52,743 - WARN [GarbageCollectorThread:EntryLogger@386] -
> Failed to get channel to scan entry log: 0.log
> 2012-05-09 15:58:52,743 - WARN
> [GarbageCollectorThread:GarbageCollectorThread@473] - Premature exception
> when processing 0recovery will take care of the problem
> java.io.FileNotFoundException: No file for log 0
> at
> org.apache.bookkeeper.bookie.EntryLogger.findFile(EntryLogger.java:366)
> at
> org.apache.bookkeeper.bookie.EntryLogger.getChannelForLogId(EntryLogger.java:340)
> at
> org.apache.bookkeeper.bookie.EntryLogger.scanEntryLog(EntryLogger.java:384)
> at
> org.apache.bookkeeper.bookie.GarbageCollectorThread.extractMetaFromEntryLog(GarbageCollectorThread.java:485)
> at
> org.apache.bookkeeper.bookie.GarbageCollectorThread.extractMetaFromEntryLogs(GarbageCollectorThread.java:470)
> at
> org.apache.bookkeeper.bookie.GarbageCollectorThread.run(GarbageCollectorThread.java:189)
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira