[
https://issues.apache.org/jira/browse/HDFS-17534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17853877#comment-17853877
]
ASF GitHub Bot commented on HDFS-17534:
---------------------------------------
yuanboliu commented on code in PR #6861:
URL: https://github.com/apache/hadoop/pull/6861#discussion_r1634103255
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/resolver/TestMultipleDestinationResolver.java:
##########
@@ -340,6 +350,13 @@ public void testReadOnly() throws IOException {
assertDest("subcluster1", dest12);
}
+ @Test
+ public void testLeaderFollower() throws IOException {
+ PathLocation dest0 =
+
resolver.getDestinationForPath("/leaderfollower/folder0/file0.txt");
Review Comment:
fixed it.
> RBF: Support leader follower mode for multiple subclusters
> ----------------------------------------------------------
>
> Key: HDFS-17534
> URL: https://issues.apache.org/jira/browse/HDFS-17534
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: rbf
> Reporter: Yuanbo Liu
> Assignee: Yuanbo Liu
> Priority: Major
> Labels: pull-request-available
>
> Currently there are five modes in multiple subclusters like
> HASH, LOCAL, RANDOM, HASH_ALL,SPACE;
> Proposal a new mode called leader/follower mode. routers try to write to
> leader subcluster as many as possible. When routers read data, put leader
> subcluster into first rank.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]