sodonnel commented on a change in pull request #521: HDDS-2592 Add Datanode 
command to allow the datanode to persist its admin state
URL: https://github.com/apache/hadoop-ozone/pull/521#discussion_r374949300
 
 

 ##########
 File path: 
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/helpers/DatanodeIdYaml.java
 ##########
 @@ -105,6 +112,8 @@ public static DatanodeDetails readDatanodeIdFile(File path)
     private String ipAddress;
     private String hostName;
     private String certSerialId;
+    private String persistedOpState;
+    private long persistedOpStateExpiryEpochSec = 0;
 
 Review comment:
   This might be a good idea. The current "infinity" value in SCM is zero, as 
it checks for greater than zero expiry right now, but it could be changed to a 
constant easily enough.
   
   It would be good for the command to always get a time so its consistent. I 
need to go back and refresh my memory on the command etc here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to