Altinity / clickhouse-sink-connector

Replicate data from MySQL, Postgres and MongoDB to ClickHouse
https://www.altinity.com
Apache License 2.0
197 stars 48 forks source link

Disable transaction not supported clickhouse-jdbc error #578

Open subkanthi opened 1 month ago

subkanthi commented 1 month ago

There is a workaround to disable the transaction not supported JDBC errror. https://github.com/ClickHouse/clickhouse-java/issues/872

subkanthi commented 1 month ago

These changes dont seem to change the logger level

        // Hide the Transaction is not supported errors in clickhouse-jdbc
        final LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
        final Configuration config = ctx.getConfiguration();
        final LoggerConfig loggerConfig = config.getLoggerConfig(ClickHouseConnectionImpl.class.getName());
        loggerConfig.setLevel(Level.ERROR);