You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/21 09:04:00 UTC

[jira] [Work logged] (HDFS-16082) Avoid non-atomic operations on exceptionsSinceLastBalance and failedTimesSinceLastSuccessfulBalance in Balancer

     [ https://issues.apache.org/jira/browse/HDFS-16082?focusedWorklogId=612504&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-612504 ]

ASF GitHub Bot logged work on HDFS-16082:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jun/21 09:03
            Start Date: 21/Jun/21 09:03
    Worklog Time Spent: 10m 
      Work Description: virajjasani opened a new pull request #3127:
URL: https://github.com/apache/hadoop/pull/3127


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 612504)
    Remaining Estimate: 0h
            Time Spent: 10m

> Avoid non-atomic operations on exceptionsSinceLastBalance and failedTimesSinceLastSuccessfulBalance in Balancer
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-16082
>                 URL: https://issues.apache.org/jira/browse/HDFS-16082
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Viraj Jasani
>            Assignee: Viraj Jasani
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Balancer has introduced 2 volatile int as part of HDFS-13783 namely: exceptionsSinceLastBalance and failedTimesSinceLastSuccessfulBalance. However, we are performing non-atomic operations on it. Since non-atomic operations done here mostly depend on their previous values, we should use AtomicInteger for both.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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