Code review comment: `cost={}s`, same as the info log.

Code under review:
private void schedule() {
        
        for (Iterator<Map.Entry<PartitionIdentifier, CompactionContext>> iterator = runningCompactions.entrySet().iterator();
                iterator.hasNext(); ) {
            Map.Entry<PartitionIdentifier, CompactionContext> entry = iterator.next();
            PartitionIdentifier partition = entry.getKey();
            CompactionContext context = entry.getValue();

            if (context.compactionFinishedOnBE() && !context.transactionHasCommitted()) {
                try {
                    commitCompaction(partition, context);
                } catch (Exception e) {
                    LOG.error("Fail to commit compaction. {} error={}", context.getDebugString(), e.getMessage());
                    iterator.remove();
                    context.setFinishTs(System.currentTimeMillis());
                    failHistory.offer(CompactionRecord.build(context, e.getMessage()));
                    compactionManager.enableCompactionAfter(partition, MIN_COMPACTION_INTERVAL_MS_ON_FAILURE);
                    try {
                        transactionMgr.abortTransaction(partition.getDbId(), context.getTxnId(), e.getMessage());
                    } catch (UserException ex) {
                        LOG.error("Fail to abort txn " + context.getTxnId(), ex);
                    }
                    continue;
                }
            }

            if (context.transactionHasCommitted() && context.waitTransactionVisible(100, TimeUnit.MILLISECONDS)) {
                iterator.remove();
                context.setFinishTs(System.currentTimeMillis());
                history.offer(CompactionRecord.build(context));
                long cost = context.getFinishTs() - context.getStartTs();
                if (cost >= /*60 minutes=*/3600000) {
                    LOG.info("Removed published compaction. {} cost={}s running={}", context.getDebugString(),
                            cost / 1000, runningCompactions.size());
                } else if (LOG.isDebugEnabled()) {
                    LOG.debug("Removed published compaction. {} cost={}ms running={}", context.getDebugString(),
                            cost, runningCompactions.size());
                }
                compactionManager.enableCompactionAfter(partition, MIN_COMPACTION_INTERVAL_MS_ON_SUCCESS);
            }
        }

        
        int index = 0;
        int compactionLimit = compactionTaskLimit();
        int numRunningTasks = runningCompactions.values().stream().mapToInt(CompactionContext::getNumCompactionTasks).sum();
        if (numRunningTasks >= compactionLimit) {
            return;
        }

        List<PartitionIdentifier> partitions = compactionManager.choosePartitionsToCompact(runningCompactions.keySet());
        while (numRunningTasks < compactionLimit && index < partitions.size()) {
            PartitionIdentifier partition = partitions.get(index++);
            CompactionContext context = startCompaction(partition);
            if (context == null) {
                continue;
            }
            numRunningTasks += context.getNumCompactionTasks();
            runningCompactions.put(partition, context);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Created new compaction job. partition={} txnId={}", partition, context.getTxnId());
            }
        }
    }

Line commented on: LOG.debug("Removed published compaction. {} cost={}ms running={}", context.getDebugString(),

Revised code:
private void schedule() {
        
        for (Iterator<Map.Entry<PartitionIdentifier, CompactionContext>> iterator = runningCompactions.entrySet().iterator();
                iterator.hasNext(); ) {
            Map.Entry<PartitionIdentifier, CompactionContext> entry = iterator.next();
            PartitionIdentifier partition = entry.getKey();
            CompactionContext context = entry.getValue();

            if (context.compactionFinishedOnBE() && !context.transactionHasCommitted()) {
                try {
                    commitCompaction(partition, context);
                } catch (Exception e) {
                    LOG.error("Fail to commit compaction. {} error={}", context.getDebugString(), e.getMessage());
                    iterator.remove();
                    context.setFinishTs(System.currentTimeMillis());
                    failHistory.offer(CompactionRecord.build(context, e.getMessage()));
                    compactionManager.enableCompactionAfter(partition, MIN_COMPACTION_INTERVAL_MS_ON_FAILURE);
                    try {
                        transactionMgr.abortTransaction(partition.getDbId(), context.getTxnId(), e.getMessage());
                    } catch (UserException ex) {
                        LOG.error("Fail to abort txn " + context.getTxnId(), ex);
                    }
                    continue;
                }
            }

            if (context.transactionHasCommitted() && context.waitTransactionVisible(100, TimeUnit.MILLISECONDS)) {
                iterator.remove();
                context.setFinishTs(System.currentTimeMillis());
                history.offer(CompactionRecord.build(context));
                long cost = context.getFinishTs() - context.getStartTs();
                if (cost >= /*60 minutes=*/3600000) {
                    LOG.info("Removed published compaction. {} cost={}s running={}", context.getDebugString(),
                            cost / 1000, runningCompactions.size());
                } else if (LOG.isDebugEnabled()) {
                    LOG.debug("Removed published compaction. {} cost={}s running={}", context.getDebugString(),
                            cost / 1000, runningCompactions.size());
                }
                compactionManager.enableCompactionAfter(partition, MIN_COMPACTION_INTERVAL_MS_ON_SUCCESS);
            }
        }

        
        int index = 0;
        int compactionLimit = compactionTaskLimit();
        int numRunningTasks = runningCompactions.values().stream().mapToInt(CompactionContext::getNumCompactionTasks).sum();
        if (numRunningTasks >= compactionLimit) {
            return;
        }

        List<PartitionIdentifier> partitions = compactionManager.choosePartitionsToCompact(runningCompactions.keySet());
        while (numRunningTasks < compactionLimit && index < partitions.size()) {
            PartitionIdentifier partition = partitions.get(index++);
            CompactionContext context = startCompaction(partition);
            if (context == null) {
                continue;
            }
            numRunningTasks += context.getNumCompactionTasks();
            runningCompactions.put(partition, context);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Created new compaction job. partition={} txnId={}", partition, context.getTxnId());
            }
        }
    }