Пример #1
0
  @Override
  public void stop() {
    if (metaConnection != null) {
      try {
        metaConnection.disconnect();
      } catch (IOException e) {
        logger.error(
            "ERROR # disconnect meta connection for address:{}",
            metaConnection.getConnector().getAddress(),
            e);
      }
    }

    if (tableMetaCache != null) {
      tableMetaCache.clearTableMeta();
    }

    super.stop();
  }
Пример #2
0
  public void stop() throws CanalParseException {
    if (metaConnection != null) {
      try {
        metaConnection.disconnect();
      } catch (IOException e) {
        logger.error(
            "ERROR # disconnect meta connection for address:{}",
            metaConnection.getConnector().getAddress(),
            e);
      }
    }

    if (tableMetaCache != null) {
      tableMetaCache.clearTableMeta();
    }

    stopHeartbeat();
    super.stop();
  }