public boolean shouldSkipCapturing() {
    if ((oldDb.getOwnerType() == newDb.getOwnerType())
            && oldDb.getOwnerName().equalsIgnoreCase(newDb.getOwnerName())) {
      // If owner information is unchanged, then DB properties would've changed
      Map<String, String> newDbProps = newDb.getParameters();
      Map<String, String> oldDbProps = oldDb.getParameters();
      return (newDbProps == null || newDbProps.isEmpty()) ? (oldDbProps == null || oldDbProps.isEmpty())
              : newDbProps.equals(oldDbProps);
    }
    return false;
  }
@return whether this AlterDatabaseEvent should be logged or not.
 (Those AlterDatabaseEvent should not be logged which alters only the replication properties of database.)
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/events/AlterDatabaseEvent.java