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

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

                Author: ASF GitHub Bot
            Created on: 01/Jul/21 15:52
            Start Date: 01/Jul/21 15:52
    Worklog Time Spent: 10m 
      Work Description: Hexiaoqiao merged pull request #3159:
URL: https://github.com/apache/hadoop/pull/3159


   


-- 
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.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

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


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

    Worklog Id:     (was: 617661)
    Time Spent: 0.5h  (was: 20m)

> Make bpServiceToActive to be volatile
> -------------------------------------
>
>                 Key: HDFS-16099
>                 URL: https://issues.apache.org/jira/browse/HDFS-16099
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>            Reporter: Shuyan Zhang
>            Assignee: Shuyan Zhang
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> BPOfferService#bpServiceToActive is not volatile, which may cause 
> _CommandProcessingThread_ to get the out-of-date active namenode. 
> When a failover occurs, the old ANN's _CommandProcessingThread_ may read the 
> outdated BPOfferService#bpServiceToActive and execute the NN's command. At 
> this time, if the new ANN's _CommandProcessingThread_ reads the new value of 
> bpServiceToActive, split brain will occur; otherwise, the new ANN's commands 
> cannot be executed normally, which is also unacceptable.



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

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

Reply via email to