Apache9 commented on code in PR #5954:
URL: https://github.com/apache/hbase/pull/5954#discussion_r1642127486
##########
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:
Checked the code, there is no ctime for hadoop...
So for FS based storage, I think we need a separated file to store the
creation time...
--
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]