Skip to content

Commit 1695d8d

Browse files
authored
HDFS-15258. RBF: Mark Router FSCK unstable. (apache#1934)
1 parent ff50ecd commit 1695d8d

File tree

1 file changed

+6
-0
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router

1 file changed

+6
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterFsck.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.Map.Entry;
3434

3535
import org.apache.hadoop.classification.InterfaceAudience;
36+
import org.apache.hadoop.classification.InterfaceStability;
3637
import org.apache.hadoop.hdfs.server.federation.resolver.FederationNamenodeServiceState;
3738
import org.apache.hadoop.hdfs.server.federation.store.MembershipStore;
3839
import org.apache.hadoop.hdfs.server.federation.store.StateStoreService;
@@ -48,6 +49,7 @@
4849
* Wrapper for the Router to offer the Namenode FSCK.
4950
*/
5051
@InterfaceAudience.Private
52+
@InterfaceStability.Unstable
5153
public class RouterFsck {
5254

5355
public static final Logger LOG =
@@ -69,6 +71,10 @@ public RouterFsck(Router router, Map<String, String[]> pmap,
6971
public void fsck() {
7072
final long startTime = Time.monotonicNow();
7173
try {
74+
String warnMsg = "Now FSCK to DFSRouter is unstable feature. " +
75+
"There may be incompatible changes between releases.";
76+
LOG.warn(warnMsg);
77+
out.println(warnMsg);
7278
String msg = "Federated FSCK started by " +
7379
UserGroupInformation.getCurrentUser() + " from " + remoteAddress +
7480
" at " + new Date();

0 commit comments

Comments
 (0)