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

Ted Yu updated HBASE-8394:
--------------------------

    Description: 
In HDFS-4525, the following API was added:
{code}
  /**
   * Get the close status of a file
   * @param src The path to the file
   *
   * @return return true if file is closed
   * @throws FileNotFoundException if the file does not exist.
   * @throws IOException If an I/O error occurred     
   */
  public boolean isFileClosed(Path src) throws IOException {
{code}
It is not available in hadoop 1.1 at the moment.

In HBASE-8389, there was discussion for utilizing isFileClosed() to optimize 
the wait time for lease recovery.

Subsequent lease recovery request for the same Path would preempt outstanding 
recovery. But if we wait for one particular recovery request to complete 
without limit on duration, we may incur penalty due to various failure 
scenarios such as the primary Data Node chosen by Namenode being stale, etc.

This JIRA continues the work for 0.95 / trunk.

  was:
In HBASE-8389, there was discussion for utilizing isFileClosed() to optimize 
the wait time for lease recovery.

Subsequent lease recovery request for the same Path would preempt outstanding 
recovery. But if we wait for one particular recovery without limit on duration, 
we may incur penalty due to various failure scenarios such as stale primary 
Data Node, etc.

This JIRA continues the work for 0.95 / trunk.

    
> Utilize isFileClosed() so that the wait for lease recovery can be optimized
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-8394
>                 URL: https://issues.apache.org/jira/browse/HBASE-8394
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>
> In HDFS-4525, the following API was added:
> {code}
>   /**
>    * Get the close status of a file
>    * @param src The path to the file
>    *
>    * @return return true if file is closed
>    * @throws FileNotFoundException if the file does not exist.
>    * @throws IOException If an I/O error occurred     
>    */
>   public boolean isFileClosed(Path src) throws IOException {
> {code}
> It is not available in hadoop 1.1 at the moment.
> In HBASE-8389, there was discussion for utilizing isFileClosed() to optimize 
> the wait time for lease recovery.
> Subsequent lease recovery request for the same Path would preempt outstanding 
> recovery. But if we wait for one particular recovery request to complete 
> without limit on duration, we may incur penalty due to various failure 
> scenarios such as the primary Data Node chosen by Namenode being stale, etc.
> This JIRA continues the work for 0.95 / trunk.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to