It is similar to
YARN-4294 and YARN-4300.
The javadoc failure on trunk makes sense. The javadoc generation currently fails on trunk so the expectation is failing pre-patch and pass after patch.
The new javadoc warnings do not make sense. I guess they are because the previous failures.
The unit test failures are unrelated.
Locally everything also seems OK. Could you please check my patch?