prashantpogde commented on a change in pull request #1508:
URL: https://github.com/apache/ozone/pull/1508#discussion_r520812428



##########
File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/DatanodeInfo.java
##########
@@ -53,6 +56,11 @@ public DatanodeInfo(DatanodeDetails datanodeDetails) {
     super(datanodeDetails);
     this.lock = new ReentrantReadWriteLock();
     this.lastHeartbeatTime = Time.monotonicNow();
+    lastKnownLayoutVersion =
+        LayoutVersionProto.newBuilder()
+            .setMetadataLayoutVersion(0)

Review comment:
       because register may not even be called when the datanode comes up. The 
very first message from datanode could be directly a heartbeat message.




----------------------------------------------------------------
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]



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

Reply via email to