hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-13031) Refactor the code that maintains rack-aware counters in FileSystem$Statistics
Date Mon, 06 Jun 2016 02:22:59 GMT

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

Mingliang Liu updated HADOOP-13031:
-----------------------------------
    Issue Type: Sub-task  (was: Improvement)
        Parent: HADOOP-13065

> Refactor the code that maintains rack-aware counters in FileSystem$Statistics
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-13031
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13031
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Mingliang Liu
>
> According to discussion in [HDFS-10175], using a composite (e.g. enum map, array) data
structure to manage the distance->bytesRead mapping will probably make the code simpler.
> # {{StatisticsData}} will be a bit shorter by delegating the operations to the composite
data structure.
> # The {{incrementBytesReadByDistance(int distance, long newBytes)}} and {{getBytesReadByDistance(int
distance)}} which switch-case all hard-code variables, may be simplified as we can set/get
the {{bytesRead}} by distance directly from map/array.
> This jira is to track the discussion and effort of refactoring the code that maintains
rack-aware counters.



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

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


Mime
View raw message