hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject hadoop git commit: HDDS-128. Support for DN to SCM signaling. Contributed by Nanda Kumar.
Date Wed, 30 May 2018 21:21:28 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 778a4a24b -> 02c4b89f9


HDDS-128. Support for DN to SCM signaling.
Contributed by Nanda Kumar.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/02c4b89f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/02c4b89f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/02c4b89f

Branch: refs/heads/trunk
Commit: 02c4b89f99c93cf0a98509bc65a3313b653e98ff
Parents: 778a4a2
Author: Anu Engineer <aengineer@apache.org>
Authored: Wed May 30 13:15:44 2018 -0700
Committer: Anu Engineer <aengineer@apache.org>
Committed: Wed May 30 14:21:13 2018 -0700

----------------------------------------------------------------------
 .../StorageContainerDatanodeProtocol.proto      | 28 +++++++++++++++-----
 1 file changed, 21 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/02c4b89f/hadoop-hdds/container-service/src/main/proto/StorageContainerDatanodeProtocol.proto
----------------------------------------------------------------------
diff --git a/hadoop-hdds/container-service/src/main/proto/StorageContainerDatanodeProtocol.proto
b/hadoop-hdds/container-service/src/main/proto/StorageContainerDatanodeProtocol.proto
index cc131e0..ac2314e 100644
--- a/hadoop-hdds/container-service/src/main/proto/StorageContainerDatanodeProtocol.proto
+++ b/hadoop-hdds/container-service/src/main/proto/StorageContainerDatanodeProtocol.proto
@@ -79,6 +79,7 @@ message SCMHeartbeatRequestProto {
   required DatanodeDetailsProto datanodeDetails = 1;
   optional NodeReportProto nodeReport = 2;
   optional ContainerReportsProto containerReport = 3;
+  optional ContainerActionsProto containerActions = 4;
 }
 
 /*
@@ -122,20 +123,33 @@ enum StorageTypeProto {
   PROVIDED = 5;
 }
 
-/**
-A set of container reports, max count is generally set to
-8192 since that keeps the size of the reports under 1 MB.
-*/
 message ContainerReportsProto {
-  repeated ContainerInfo reports = 2;
+  repeated ContainerInfo reports = 1;
 }
 
+message ContainerActionsProto {
+  repeated ContainerAction containerActions = 1;
+}
+
+message ContainerAction {
+  enum Action {
+    CLOSE = 1;
+  }
+
+  enum Reason {
+    CONTAINER_FULL = 1;
+  }
+
+  required ContainerInfo container = 1;
+  required Action action = 2;
+  optional Reason reason = 3;
+}
 
 /**
 A container report contains the following information.
 */
 message ContainerInfo {
-  optional string finalhash = 1;
+  required int64 containerID = 1;
   optional int64 size = 2;
   optional int64 used = 3;
   optional int64 keyCount = 4;
@@ -144,7 +158,7 @@ message ContainerInfo {
   optional int64 writeCount = 6;
   optional int64 readBytes = 7;
   optional int64 writeBytes = 8;
-  required int64 containerID = 9;
+  optional string finalhash = 9;
   optional hadoop.hdds.LifeCycleState state = 10;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message