bookie hangs on reading header when encountering partial header index file
--------------------------------------------------------------------------
Key: BOOKKEEPER-169
URL: https://issues.apache.org/jira/browse/BOOKKEEPER-169
Project: Bookkeeper
Issue Type: Bug
Components: bookkeeper-server
Affects Versions: 4.0.0
Reporter: Sijie Guo
Assignee: Sijie Guo
Fix For: 4.1.0
bookie server hangs on reading header part when reading partial header index
file (whose header part is less than 1k). This kind of index file existed
because bookie server shuts down when writing header of index file.
bookie server should check file size when reading header. in pre-v3 journal, we
don't have master key stored in journal, so if master key is missing, we have
no chance to repair it just throw an IOException when reading header. in
post-v3 journal, we store master key as an meta entry in journal, so we can
rewrite the header part.
--
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