Yes Karthik Kambatla , This will definitely clean up some code there. I could help here if you are not planning.
Attaching a patch after cleaning up the StatusHealthy/UnHealthy transitions.
This message was automatically generated.
FAILURE: Integrated in Hadoop-trunk-Commit #9101 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9101/)
YARN-4551. Address the duplication between StatusUpdateWhenHealthy and (kasha: rev 321072ba8114ed5ad2e9c5c2cfd7e1a54def6ebe)
Thanks for working on this, Sunil G. Just committed this to trunk and branch-2.
Thank you Karthik Kambatla for the review and commit!