HA: Fix test cases which use standalone FSNamesystems
-----------------------------------------------------
Key: HDFS-2714
URL: https://issues.apache.org/jira/browse/HDFS-2714
Project: Hadoop HDFS
Issue Type: Sub-task
Components: ha, test
Affects Versions: HA branch (HDFS-1623)
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Trivial
Several tests (eg TestEditLog, TestSaveNamespace) failed in the most recent
build with an NPE inside of FSNamesystem.checkOperation. These tests set up a
standalone FSN that isn't fully initialized. We just need to add a null check
to deal with this case in checkOperation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira