[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273003#comment-13273003
 ] 

Sijie Guo commented on BOOKKEEPER-251:
--------------------------------------

@Flavio,

actually this exception is related to issue BOOKKEEPER-126. currently we don't 
have such mechanism to handle corruption entry log files, so I think it is a 
'Premature exception', the message is not so bad now.

I think one thing to do is adding a TODO item, so when we fix BOOKKEEPER-126. 
the message might need to be improved.  
                
> 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

        

Reply via email to