[
https://issues.apache.org/jira/browse/BOOKKEEPER-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147692#comment-13147692
]
Sijie Guo commented on BOOKKEEPER-82:
-------------------------------------
the exception indicates that entry logger file is corrupted.
I have added code in EntryLogger#shutdown to ensure buffered data is flushed.
{code:title=EntryLogger.java}
/**
* Shutdown method to gracefully stop all threads spawned in this class and
exit.
*
* @throws InterruptedException if there is an exception stopping threads.
*/
public void shutdown() throws InterruptedException {
gcThread.running = false;
gcThread.interrupt();
gcThread.join();
// since logChannel is buffered channel, do flush when shutting down
try {
flush();
} catch (IOException ie) {
// we have no idea how to avoid io exception during shutting down,
so just ignore it
LOG.fatal("Error flush entry log during shutting down, which may
cause entry log corrupted.", ie);
}
}
{code}
So the entry logger file should not be corrupted, otherwise it was interrupted
before flush or io exception occurred during flush.
Could you turn test debug level on to INFO or WARN level, and rerun the test to
grap more information? since I can't reproduce this issue either running
LedgerDeleteTest alone or running all test cases . :(
> support journal rolling
> -----------------------
>
> Key: BOOKKEEPER-82
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-82
> Project: Bookkeeper
> Issue Type: Improvement
> Components: bookkeeper-server
> Affects Versions: 4.0.0
> Reporter: Sijie Guo
> Assignee: Sijie Guo
> Fix For: 4.0.0
>
> Attachments: BOOKKEEPER-82.patch_v3, BOOKKEEPER-82.patch_v4,
> bookkeeper-82.patch, bookkeeper-82.patch_v2
>
>
> now bookkeeper is writing a single journal file, so the journal file has no
> chance to be garbage collected and the disk space keeps growing.
--
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