private void filterOutReplProps(Map<String, String> dbProps) {
    if (dbProps == null) {
      return;
    }
    List<String> propsToRemove = new ArrayList<>();
    for (Map.Entry<String, String> prop : dbProps.entrySet()) {
      String propName = prop.getKey().replace("\"", "");
      if (propName.startsWith(ReplConst.BOOTSTRAP_DUMP_STATE_KEY_PREFIX) || replDbProps.contains(propName)) {
        propsToRemove.add(prop.getKey());
      }
    }
    for (String key:propsToRemove) {
      dbProps.remove(key);
    }
  }
AlterDatabaseEvent.
Event which is captured during database alters for owner info or properties or location
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/events/AlterDatabaseEvent.java