hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12173) MiniDFSCluster cannot reliably use NameNode#stop
Date Thu, 20 Jul 2017 21:05:00 GMT
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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message