From da1ea2530fa61c53a99770e10889023c474fb4ef Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Mon, 7 Dec 2020 18:52:12 +0800 Subject: [PATCH] HDFS-15660. StorageTypeProto is not compatiable between 3.x and 2.6. Contributed by Ryan Wu. --- .../hadoop-hdfs-client/src/main/proto/hdfs.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/hdfs.proto b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/hdfs.proto index 5ae58cfddad..08fce715606 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/hdfs.proto +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/hdfs.proto @@ -198,7 +198,7 @@ message StorageTypeQuotaInfosProto { } message StorageTypeQuotaInfoProto { - required StorageTypeProto type = 1; + optional StorageTypeProto type = 1 [default = DISK]; required uint64 quota = 2; required uint64 consumed = 3; }