hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Patrick McCabe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7979) Initialize block report IDs with a random number
Date Thu, 02 Apr 2015 00:04:18 GMT

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

Colin Patrick McCabe commented on HDFS-7979:
--------------------------------------------

Unfortunately, this latest patch always starts with 1... :)

Let's initialize the prevBlockReportId with Random.nextLong.

> Initialize block report IDs with a random number
> ------------------------------------------------
>
>                 Key: HDFS-7979
>                 URL: https://issues.apache.org/jira/browse/HDFS-7979
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 2.7.0
>            Reporter: Andrew Wang
>            Assignee: Andrew Wang
>            Priority: Minor
>         Attachments: HDFS-7979.001.patch, HDFS-7979.002.patch, HDFS-7979.003.patch
>
>
> Right now block report IDs use system nanotime. This isn't that random, so let's start
it at a random number for some more safety.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message