public boolean isDBDataSourceClosed() {
        if (this.datasource != null) {
            try {
                Connection con = datasource.getConnection();
                if (con != null) {
                    con.close();
                }
                return false;
            } catch (Exception exception) {
                LOGGER.error("Exception {}", exception.getMessage());
                return true;
            }
        }
        return true;
    }
Judge DB data source whether to closed

@return
inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/selector/impl/DBDataSource.java