ayushtkn commented on code in PR #4813:
URL: https://github.com/apache/hadoop/pull/4813#discussion_r960384696


##########
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java:
##########
@@ -197,6 +198,11 @@ private DFSOutputStream(DFSClient dfsClient, String src,
     this.src = src;
     this.fileId = stat.getFileId();
     this.namespace = stat.getNamespace();
+    if (this.namespace == null) {
+      this.renewLeaseKey = "DEFAULT" + "_" + this.fileId;
+    } else {
+      this.renewLeaseKey = this.namespace + "_" + this.fileId;
+    }

Review Comment:
   The "DEFAULT" needs to be configurable, someone can have a namespace with 
name DEFAULT as well



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

To unsubscribe, e-mail: [email protected]

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