From 67af509097d8df4df161d53e3e511b312e8ac3dd Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Tue, 19 Feb 2019 11:29:52 +0800 Subject: [PATCH] HDDS-1122. Fix TestOzoneManagerRatisServer#testSubmitRatisRequest unit test failure. Contributed by Yiqun Lin. --- .../java/org/apache/hadoop/ozone/om/ratis/OMRatisHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OMRatisHelper.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OMRatisHelper.java index ee1fee6d9b..9115421d8e 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OMRatisHelper.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OMRatisHelper.java @@ -25,6 +25,7 @@ .OMRequest; import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos .OMResponse; +import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.Status; import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.Type; import org.apache.ratis.RaftConfigKeys; import org.apache.ratis.client.RaftClient; @@ -110,6 +111,7 @@ static OMResponse getErrorResponse(Type cmdType, Exception e) { .setCmdType(cmdType) .setSuccess(false) .setMessage(e.getMessage()) + .setStatus(Status.INTERNAL_ERROR) .build(); } }