diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java index 95793335f1a1b5..d70243804a6905 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java @@ -2031,7 +2031,6 @@ public TStreamLoadMultiTablePutResult streamLoadMultiTablePut(TStreamLoadPutRequ } long timeoutMs = request.isSetThriftRpcTimeoutMs() ? request.getThriftRpcTimeoutMs() : 5000; List planFragmentParamsList = new ArrayList<>(tableNames.size()); - List tableIds = olapTables.stream().map(OlapTable::getId).collect(Collectors.toList()); // todo: if is multi table, we need consider the lock time and the timeout boolean enablePipelineLoad = Config.enable_pipeline_load; try { @@ -2049,9 +2048,6 @@ public TStreamLoadMultiTablePutResult streamLoadMultiTablePut(TStreamLoadPutRequ } multiTableFragmentInstanceIdIndexMap.put(request.getTxnId(), ++index); } - Env.getCurrentGlobalTransactionMgr().getDatabaseTransactionMgr(db.getId()) - .putTransactionTableNames(request.getTxnId(), - tableIds); LOG.debug("receive stream load multi table put request result: {}", result); } catch (Throwable e) { LOG.warn("catch unknown result.", e); diff --git a/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java b/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java index f21d7a2120460e..7be0c1f841ea91 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java +++ b/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java @@ -2108,17 +2108,6 @@ private static String getStackTrace(Thread t) { return msgBuilder.toString(); } - public void putTransactionTableNames(long transactionId, List tableIds) { - if (CollectionUtils.isEmpty(tableIds)) { - return; - } - if (multiTableRunningTransactionTableIdMaps.contains(transactionId)) { - multiTableRunningTransactionTableIdMaps.get(transactionId).addAll(tableIds); - return; - } - multiTableRunningTransactionTableIdMaps.put(transactionId, tableIds); - } - /** * Update transaction table ids by transaction id. * it's used for multi table transaction.