YARN-502. Fixed a state machine issue with RMNode inside ResourceManager which was crashing scheduler. Contributed by Mayank Bansal. svn merge --ignore-ancestry -c 1509060 ../../trunk/