hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anu Engineer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9645) DiskBalancer : Add Query RPC
Date Mon, 18 Jan 2016 17:43:39 GMT

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

Anu Engineer updated HDFS-9645:
    Attachment: HDFS-9645-HDFS-1312.002.patch

bq. I have a question: we set the result as long in WorkStatus, while use optional uint32
in protobuf. Is it on purpose?

[~liuml07] Thanks for the comment. I had logically reasoned that to be able to use all 32
bits of an unsigned int 32, java int would not be right choice since it has only 31 bits that
are usable. So I choose the next logically higher data type that can hold all values correctly.

But I do see that protoc compiler thinks quite differently and generates a value of int in
java - with 31 bits instead of using a larger value. I also found a thread which asks exactly
the same question in protoc groups. https://groups.google.com/forum/#!topic/protobuf/V4iPMgsoEtI
. This patch changes long to int in java code.

> DiskBalancer : Add Query RPC
> ----------------------------
>                 Key: HDFS-9645
>                 URL: https://issues.apache.org/jira/browse/HDFS-9645
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer & mover
>    Affects Versions: HDFS-1312
>            Reporter: Anu Engineer
>            Assignee: Anu Engineer
>             Fix For: HDFS-1312
>         Attachments: HDFS-9645-HDFS-1312.001.patch, HDFS-9645-HDFS-1312.002.patch
> Add query RPC, which reports the status of an executing plan.

This message was sent by Atlassian JIRA

View raw message