From 726f0e19811484d8cbf883bc2f4a492002091600 Mon Sep 17 00:00:00 2001 From: tanyuxin Date: Fri, 15 Feb 2019 14:50:44 +0800 Subject: [PATCH] Fix State transition err when hdfs ccm feature is used --- .../linkedin/dynamometer/blockgenerator/XMLParser.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dynamometer-blockgen/src/main/java/com/linkedin/dynamometer/blockgenerator/XMLParser.java b/dynamometer-blockgen/src/main/java/com/linkedin/dynamometer/blockgenerator/XMLParser.java index 3b915c23b2..afecbbd398 100644 --- a/dynamometer-blockgen/src/main/java/com/linkedin/dynamometer/blockgenerator/XMLParser.java +++ b/dynamometer-blockgen/src/main/java/com/linkedin/dynamometer/blockgenerator/XMLParser.java @@ -52,6 +52,16 @@ class XMLParser { * @return {@code BlockInfo}s for any blocks found. */ List parseLine(String line) throws IOException { + // Centralized Cache Management compatibility + // if CCM feature is open, fsimage xml may include + // 8963/user/some/path3 + // cache_other_pool1544454142310false + // these lines need to be filtered + if (line.contains("")) { + System.out.println("this line is for Centralized Cache Management, ignore, line:" + line); + return new ArrayList<>(); + } + if (line.contains("")) { transitionTo(State.INODE); }