You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2017/07/20 21:05:00 UTC
[jira] [Created] (HDFS-12173) MiniDFSCluster cannot reliably use
NameNode#stop
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org