You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (JIRA)" <ji...@apache.org> on 2018/04/29 12:05:00 UTC

[jira] [Updated] (HBASE-20507) Do not need to call recoverLease on the broken file when we fail to create a wal writer

     [ https://issues.apache.org/jira/browse/HBASE-20507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duo Zhang updated HBASE-20507:
------------------------------
    Component/s: wal

> Do not need to call recoverLease on the broken file when we fail to create a wal writer
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-20507
>                 URL: https://issues.apache.org/jira/browse/HBASE-20507
>             Project: HBase
>          Issue Type: Improvement
>          Components: wal
>            Reporter: Duo Zhang
>            Priority: Major
>
> I tried locally with a UT, if we overwrite a file which is currently being written, the old file will be completed and then deleted. If you call close on the previous file, a no lease exception will be thrown which means that the file has already been completed.
> So we do not need to close a file if it will be overwritten immediately, since recoverLease may take a very long time...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)