zookeeper-bookkeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Nagro <jna...@hubspot.com>
Subject Re: update to most recent snapshot results in weird logs
Date Thu, 10 May 2012 12:15:51 GMT
Thanks Sijie!

On Thu, May 10, 2012 at 1:47 AM, Sijie Guo <guosijie@gmail.com> wrote:

> Hello John,
>
> ah, these noise message are due to the messy scan mechanism we used in
> garbage collector thread running in bookie server.
> Currently each garbage collection run, it would scan entry log files
> starting from zero, it would try to scan those garbage collected entry log
> files again, which cause printing such message.
>
> I created BOOKKEEPER-251 to fix it today.
>
> Thanks,
> Sijie
>
> On Thu, May 10, 2012 at 4:04 AM, John Nagro <jnagro@hubspot.com> wrote:
>
>> Hello -
>>
>> I was seeing error messages related to BOOKKEEPER-229. I saw that the
>> patch was incorporated in, so I upgraded one of my QA bk servers, which
>> resulted in these sorts of error messages over and over in the logs:
>>
>>
>> 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)
>> 2012-05-09 15:58:52,743 - INFO
>>  [GarbageCollectorThread:GarbageCollectorThread@466] - Extracting entry
>> log meta from entryLogId: 1
>> 2012-05-09 15:58:52,743 - WARN  [GarbageCollectorThread:EntryLogger@386]
>> - Failed to get channel to scan entry log: 1.log
>> 2012-05-09 15:58:52,744 - WARN
>>  [GarbageCollectorThread:GarbageCollectorThread@473] - Premature
>> exception when processing 1recovery will take care of the problem
>> java.io.FileNotFoundException: No file for log 1
>>         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)
>> 2012-05-09 15:58:52,744 - INFO
>>  [GarbageCollectorThread:GarbageCollectorThread@466] - Extracting entry
>> log meta from entryLogId: 2
>> 2012-05-09 15:58:52,744 - WARN  [GarbageCollectorThread:EntryLogger@386]
>> - Failed to get channel to scan entry log: 2.log
>> 2012-05-09 15:58:52,744 - WARN
>>  [GarbageCollectorThread:GarbageCollectorThread@473] - Premature
>> exception when processing 2recovery will take care of the problem
>> java.io.FileNotFoundException: No file for log 2
>>         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)
>> 2012-05-09 15:58:52,744 - INFO
>>  [GarbageCollectorThread:GarbageCollectorThread@466] - Extracting entry
>> log meta from entryLogId: 4
>> 2012-05-09 15:58:52,744 - WARN  [GarbageCollectorThread:EntryLogger@386]
>> - Failed to get channel to scan entry log: 4.log
>> 2012-05-09 15:58:52,745 - WARN
>>  [GarbageCollectorThread:GarbageCollectorThread@473] - Premature
>> exception when processing 4recovery will take care of the problem
>> java.io.FileNotFoundException: No file for log 4
>>         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)
>>
>>
>> Any ideas?
>>
>> Thanks!
>>
>> -John Nagro
>>
>
>

Mime
View raw message