-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71443/
-----------------------------------------------------------
Review request for oozie.
Bugs: OOZIE-3542
https://issues.apache.org/jira/browse/OOZIE-3542
Repository: oozie-git
Description
-------
Currently, ECPolicyDisabler checks if the local hdfs implementation has the
necessary methods to get and set erasure coding policy. However, if the
namenode implementation is old, it could throw a
org.apache.hadoop.ipc.RemoteException with
RpcErrorCodeProto.ERROR_NO_SUCH_METHOD value in it.
In this case, ECPolicyDisabler fails, and prevents the installation to succeed.
This case should be handled just like, when erasure coding is not supported.
Diffs
-----
tools/src/main/java/org/apache/oozie/tools/ECPolicyDisabler.java 2d7f1f86d
tools/src/test/java/org/apache/hadoop/hdfs/protocol/SystemErasureCodingPolicies.java
PRE-CREATION
tools/src/test/java/org/apache/oozie/tools/ECPolicyDisablerTest.java
PRE-CREATION
Diff: https://reviews.apache.org/r/71443/diff/1/
Testing
-------
With unit tests, and on cluster
Thanks,
Zsombor Gegesy