1458451310 commented on code in PR #5954:
URL: https://github.com/apache/hbase/pull/5954#discussion_r1636623760


##########
hbase-replication/src/main/java/org/apache/hadoop/hbase/replication/FSReplicationPeerStorage.java:
##########
@@ -227,6 +227,16 @@ public ReplicationPeerConfig getPeerConfig(String peerId) 
throws ReplicationExce
     }
   }
 
+  @Override
+  public long getPeerCreateTime(String peerId) throws ReplicationException {
+    Path peerDir = getPeerDir(peerId);
+    try {
+      return fs.getFileStatus(peerDir).getModificationTime();
+    } catch (IOException e) {

Review Comment:
   > And it should be ctime instead of mtime?
   
   First, I try to use FileStatus.getCreationTime(), but the code shown in 
FileStatus class without the method.
   I checked that the version of the dependent hadoop-client is 3.3.5
   Do you have time to look at this question?



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

Reply via email to