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-client/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/RouterObserverReadProxyProvider.java
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,15 @@ public class RouterObserverReadProxyProvider<T> extends AbstractNNFailoverProxyP
82
82
*/
83
83
privatevolatilelonglastMsyncTimeMs = -1;
84
84
85
+
/**
86
+
* A client using RouterObserverReadProxyProvider should first sync with the
87
+
* Active NameNode on startup. This ensures that the client reads data which
88
+
* is consistent with the state of the world as of the time of its
89
+
* instantiation. This variable will be true after this initial sync has
Copy file name to clipboardExpand all lines: hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestObserverWithRouter.java
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -815,6 +815,56 @@ public void testPeriodicStateRefreshUsingActiveNamenode(ConfigSetting configSett
0 commit comments