[
https://issues.apache.org/jira/browse/HBASE-15684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang updated HBASE-15684:
------------------------------
Attachment: HBASE-15684.patch
Record log size in a map so it does not matter whether the actual file size is
changed on HDFS.
And in the current implementation, getLogFileSize only returns the total size
of all rolled wal files. The size of the wal file current written is not
considered. So I changed the comments of getLogFileSize. And seems branch-1
also has this problem.
> Fix the broken log file size accounting
> ---------------------------------------
>
> Key: HBASE-15684
> URL: https://issues.apache.org/jira/browse/HBASE-15684
> Project: HBase
> Issue Type: Bug
> Components: wal
> Affects Versions: 2.0.0
> Reporter: Duo Zhang
> Assignee: Duo Zhang
> Fix For: 2.0.0
>
> Attachments: HBASE-15684.patch
>
>
> {code}
> long oldFileLen = 0L;
> doReplaceWriter(oldPath, newPath, nextWriter);
> {code}
> Should be
> {code}
> long oldFileLen = doReplaceWriter(oldPath, newPath, nextWriter);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)