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-12327) Ozone: support setting timeout in background service
Date Tue, 22 Aug 2017 06:43:00 GMT

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

Yiqun Lin commented on HDFS-12327:

Thanks for the review, [~cheersynang]. All the comments make sense to me except this one.
bq. Another nit is can we use int for the timeout instead of long?
We don't need to change the type of timeout I think. Method {{Configuration#getTimeDuration}}
returns the {{long}} type value. If we use {{int}} type for the timeout, that means we will
cast long to int of timeout value each time in subclass of background service. There is also
a risk of losing precision that we do the type cast operation.
Attach the updated patch.

> Ozone: support setting timeout in background service
> ----------------------------------------------------
>                 Key: HDFS-12327
>                 URL: https://issues.apache.org/jira/browse/HDFS-12327
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-12327-HDFS-7240.001.patch, HDFS-12327-HDFS-7240.002.patch
> The background should support timeout setting in case the task ran hung caused by unpredictability

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