symious commented on a change in pull request #3595:
URL: https://github.com/apache/hadoop/pull/3595#discussion_r738886825



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/ClientProtocol.java
##########
@@ -765,6 +765,14 @@ BatchedDirectoryListing getBatchedListing(
   @Idempotent
   void renewLease(String clientName) throws IOException;
 
+  /**
+   * The functionality is the same as renewLease(clientName). This is to 
support
+   * router based FileSystem to newLease against a specific target FileSystem 
instead
+   * of all the target FileSystems in each call.
+   */
+  @Idempotent
+  void renewLease(String clientName, String nsId) throws IOException;

Review comment:
       In a RBF cluster, user shouldn't be aware of the Namespace he's trying 
to operate.
   If we are adding new protocols, maybe we can add "renewLease(String 
clientName, String path)" and let Router do the resolve from path to namespace.




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