Code review comment: Remove this log or LOG.debug(...)

Code under review:
protected void runAfterCatalogReady() {
        try {
            GlobalTransactionMgr globalTransactionMgr = GlobalStateMgr.getCurrentGlobalTransactionMgr();
            
            
            if (Config.enable_lake_batch_publish_version && RunMode.getCurrentRunMode() == RunMode.SHARED_DATA &&
                    Config.enable_new_publish_mechanism) {

                
                List<TransactionStateBatch> readyTransactionStatesBatch = globalTransactionMgr.
                        getReadyPublishTransactionsBatch();
                LOG.info("batch size" + readyTransactionStatesBatch.size());
                LOG.info(readyTransactionStatesBatch);
                if (readyTransactionStatesBatch.size() != 0) {
                    publishVersionForLakeTableBatch(readyTransactionStatesBatch);
                }
                return;

            }

            List<TransactionState> readyTransactionStates =
                    globalTransactionMgr.getReadyToPublishTransactions(Config.enable_new_publish_mechanism);
            if (readyTransactionStates == null || readyTransactionStates.isEmpty()) {
                return;
            }

            
            List<Long> allBackends = GlobalStateMgr.getCurrentSystemInfo().getBackendIds(false);
            if (RunMode.getCurrentRunMode() == RunMode.SHARED_DATA) {
                allBackends.addAll(GlobalStateMgr.getCurrentSystemInfo().getComputeNodeIds(false));
            }

            if (allBackends.isEmpty()) {
                LOG.warn("some transaction state need to publish, but no backend exists");
                return;
            }

            if (!RunMode.allowCreateLakeTable()) {
                publishVersionForOlapTable(readyTransactionStates);
                return;
            }

            if (!RunMode.allowCreateOlapTable()) {
                publishVersionForLakeTable(readyTransactionStates);
                return;
            }

            List<TransactionState> olapTransactions = new ArrayList<>();
            List<TransactionState> lakeTransactions = new ArrayList<>();
            for (TransactionState txnState : readyTransactionStates) {
                if (isLakeTableTransaction(txnState)) {
                    lakeTransactions.add(txnState);
                } else {
                    olapTransactions.add(txnState);
                }
            }

            if (!olapTransactions.isEmpty()) {
                publishVersionForOlapTable(olapTransactions);
            }
            if (!lakeTransactions.isEmpty()) {
                publishVersionForLakeTable(lakeTransactions);
            }
        } catch (Throwable t) {
            LOG.error("errors while publish version to all backends", t);
        }
    }

Line commented on: if (readyTransactionStatesBatch.size() != 0) {

Revised code:
protected void runAfterCatalogReady() {
        try {
            GlobalTransactionMgr globalTransactionMgr = GlobalStateMgr.getCurrentGlobalTransactionMgr();
            if (Config.lake_enable_batch_publish_version && RunMode.getCurrentRunMode() == RunMode.SHARED_DATA) {
                
                List<TransactionStateBatch> readyTransactionStatesBatch = globalTransactionMgr.
                        getReadyPublishTransactionsBatch();
                if (readyTransactionStatesBatch.size() != 0) {
                    publishVersionForLakeTableBatch(readyTransactionStatesBatch);
                }
                return;

            }

            List<TransactionState> readyTransactionStates =
                    globalTransactionMgr.getReadyToPublishTransactions(Config.enable_new_publish_mechanism);
            if (readyTransactionStates == null || readyTransactionStates.isEmpty()) {
                return;
            }

            
            List<Long> allBackends = GlobalStateMgr.getCurrentSystemInfo().getBackendIds(false);
            if (RunMode.getCurrentRunMode() == RunMode.SHARED_DATA) {
                allBackends.addAll(GlobalStateMgr.getCurrentSystemInfo().getComputeNodeIds(false));
            }

            if (allBackends.isEmpty()) {
                LOG.warn("some transaction state need to publish, but no backend exists");
                return;
            }

            if (!RunMode.allowCreateLakeTable()) { 
                publishVersionForOlapTable(readyTransactionStates);
            } else if (!RunMode.allowCreateOlapTable()) { 
                publishVersionForLakeTable(readyTransactionStates);
            } else { 
                List<TransactionState> olapTransactions = new ArrayList<>();
                List<TransactionState> lakeTransactions = new ArrayList<>();
                for (TransactionState txnState : readyTransactionStates) {
                    if (isLakeTableTransaction(txnState)) {
                        lakeTransactions.add(txnState);
                    } else {
                        olapTransactions.add(txnState);
                    }
                }

                if (!olapTransactions.isEmpty()) {
                    publishVersionForOlapTable(olapTransactions);
                }
                if (!lakeTransactions.isEmpty()) {
                    publishVersionForLakeTable(lakeTransactions);
                }
            }
        } catch (Throwable t) {
            LOG.error("errors while publish version to all backends", t);
        }
    }