You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/impl/MembershipStoreImpl.java
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/records/MembershipState.java
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -358,4 +358,23 @@ public long getDeletionMs() {
358
358
publicstaticvoidsetDeletionMs(longtime) {
359
359
MembershipState.deletionMs = time;
360
360
}
361
+
362
+
/**
363
+
* First use the comparator of the BaseRecord to compare the date modified.
364
+
* If they are equal, use {@link MembershipState#NAME_COMPARATOR} to continue the comparison
365
+
* to ensure that MembershipStates with the same date modified but reported by different routers
366
+
* will not be judged as equal.
367
+
*
368
+
* @param record the MembershipState object to be compared.
369
+
* @return a negative integer, zero, or a positive integer as this object
370
+
* is less than, equal to, or greater than the specified object.
0 commit comments