public static boolean isRescanNode(ZKWatcher zkw, String path) {
    String prefix = getRescanNode(zkw);
    if (path.length() <= prefix.length()) {
      return false;
    }
    for (int i = 0; i < prefix.length(); i++) {
      if (prefix.charAt(i) != path.charAt(i)) {
        return false;
      }
    }
    return true;
  }
Checks if the given path represents a rescan node.
@param zkw  reference to the {@link ZKWatcher} which also contains configuration and constants
@param path the absolute path, starts with '/'
@return whether the path represents a rescan node
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKSplitLog.java