This jira tracks the effort of implementing unit tests for downgrades and finalization during rolling upgrades.
+1 for the patch. I committed it to the RU feature branch.
Thanks for the contribution Haohui.
The conflict is likely due to HDFS-5963 which was just committed.
The patch needs to be rebased.