Daryn Sharp created HDFS-12173:
----------------------------------

             Summary: MiniDFSCluster cannot reliably use NameNode#stop
                 Key: HDFS-12173
                 URL: https://issues.apache.org/jira/browse/HDFS-12173
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode
    Affects Versions: 2.7.0
            Reporter: Daryn Sharp


Sporadic test failures occur because {{NameNode#stop}} used by the mini cluster 
does not properly manage the HA context's state.  It directly calls 
{{HAState#exitState(context)}} instead of {{HAState#setState(context,state)}}.  
The latter will properly lock the namesystem and update the ha state while 
locked, while the former does not.  The result is that while the cluster is 
stopping, the lock is released and any queued rpc calls think the NN is still 
active and are processed while the NN is in an unstable half-stopped state.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to