ZanderXu commented on code in PR #4813:
URL: https://github.com/apache/hadoop/pull/4813#discussion_r960529434
##########
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:
Thanks, Sir. I have updated it.
--
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]