hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yiqun Lin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12519) Ozone: Add a Lease Manager to SCM
Date Sun, 08 Oct 2017 08:03:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-12519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16196011#comment-16196011

Yiqun Lin commented on HDFS-12519:

Thanks for updating the patch, [~nandakumar131].
bq. Used Time.monotonicNow() instead of Time.now()
Use Time.monotonicNow() for calculating elapsed time is right.

bq. This was done intentionally, so that the logging will be done as Lease
Okay with this.

bq. line65, line70 line154, line193: should add the check LOG.isDebug() before invoking LOG.debug("....");
This comment seems not very clear. LOG.isDebug() is not always needed when calling LOG.debug.
If there are some parameters passed, the check LOG.isDebug() is not needed. The usage:
LOG.debug("Releasing lease on {}", resource);
if(LOG.isDebugEnabled()) {
      LOG.debug("Starting LeaseManager#LeaseMonitor Thread");

bq. We can't decide a proper interval which can suit for all the cases...
Thanks for sharing the thought. I am thinking if the method {{public synchronized Lease<T>
acquire(T resource, long timeout)}} is needed. Different timeout value resource can just use
separated lease manager to deal with. Multiple timeout required resources make single lease
manager inconveniently to deal with.

> Ozone: Add a Lease Manager to SCM
> ---------------------------------
>                 Key: HDFS-12519
>                 URL: https://issues.apache.org/jira/browse/HDFS-12519
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Anu Engineer
>            Assignee: Nandakumar
>              Labels: OzonePostMerge
>         Attachments: HDFS-12519-HDFS-7240.000.patch, HDFS-12519-HDFS-7240.001.patch
> Many objects, including Containers and pipelines can time out during creating process.
We need a way to track these timeouts. This lease Manager allows SCM to hold a lease on these
objects and helps SCM timeout waiting for creating of these objects.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message