@Override
  public TSStatus alterPipe(TAlterPipeReq req) {
    TSStatus status = confirmLeader();
    return status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()
        ? pipeManager.getPipeTaskCoordinator().alterPipe(req)
        : status;
  }
If delete pattern is prefix path (such as root.db.**), it may be optimized to delete
database plus create database. We need to determine two conditions: whether the pattern
ends in **, and that the device is a full path and is matched in the ConfigMTree.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java