hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-1865) Share LeaseChecker thread among DFSClients
Date Sun, 08 May 2011 22:40:03 GMT

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

Tsz Wo (Nicholas), SZE updated HDFS-1865:

    Attachment: h1865_20110508.patch

h1865_20110508.patch: added a test and incorporated Suresh's comments.

> Why do you check {if (r == stored) } in Factory#remove()?

Since a renewer may expire, the stored renewer can be different.  Added a comment in the code.

> Why did we choose to use volatile for sleepPeriod and synchronized for gracePeriod and
other periods?

Used synchronized for both now.

> Share LeaseChecker thread among DFSClients
> ------------------------------------------
>                 Key: HDFS-1865
>                 URL: https://issues.apache.org/jira/browse/HDFS-1865
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h1865_20110503.patch, h1865_20110504.patch, h1865_20110508.patch
> Each {{DFSClient}} runs a {{LeaseChecker}} thread within a JVM.  The number threads could
be reduced by sharing the threads.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message