[
https://issues.apache.org/jira/browse/HDFS-16877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17651815#comment-17651815
]
ASF GitHub Bot commented on HDFS-16877:
---------------------------------------
simbadzina commented on code in PR #5257:
URL: https://github.com/apache/hadoop/pull/5257#discussion_r1056868775
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestObserverWithRouter.java:
##########
@@ -545,4 +548,20 @@ public void testClientReceiveResponseState() {
Assertions.assertEquals(1, latestFederateState.size());
Assertions.assertEquals(10L, latestFederateState.get("ns0"));
}
+
+ @Test
+ public void testStateIdProgressionInRouter() throws Exception {
+ Path rootPath = new Path("/");
+ fileSystem = routerContext.getFileSystem(getConfToEnableObserverReads());
+ RouterStateIdContext routerStateIdContext = routerContext
+ .getRouterRpcServer()
+ .getRouterStateIdContext();
+ for (int i =0; i < 10; i++) {
Review Comment:
Fixed. Thanks for the catch, and the review.
> Namenode doesn't use alignment context in TestObserverWithRouter
> ----------------------------------------------------------------
>
> Key: HDFS-16877
> URL: https://issues.apache.org/jira/browse/HDFS-16877
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs, rbf
> Reporter: Simbarashe Dzinamarira
> Priority: Major
> Labels: pull-request-available
>
> We need to set "{*}dfs.namenode.state.context.enabled{*}" to true for the
> namenode to send it's stateId in client responses.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]