From 06bcb58b5624e81b4fa2d977c751e2e1be0ab4c8 Mon Sep 17 00:00:00 2001 From: ylz Date: Fri, 1 Dec 2023 16:27:04 +0800 Subject: [PATCH] fix an error that occurred during commit during load data inner 2191 --- .../backend/mysql/nio/handler/MultiNodeLoadDataHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/actiontech/dble/backend/mysql/nio/handler/MultiNodeLoadDataHandler.java b/src/main/java/com/actiontech/dble/backend/mysql/nio/handler/MultiNodeLoadDataHandler.java index e5845651b3..bb03bea38a 100644 --- a/src/main/java/com/actiontech/dble/backend/mysql/nio/handler/MultiNodeLoadDataHandler.java +++ b/src/main/java/com/actiontech/dble/backend/mysql/nio/handler/MultiNodeLoadDataHandler.java @@ -424,11 +424,11 @@ public void okResponse(byte[] data, AbstractService service) { } String filePath = rrn.getLoadData().getFileName(); LoadDataBatch.getInstance().setFileName(filePath); - handlerCommit(rrn); FileUtils.deleteFile(filePath); rrn.setLoadDataRrnStatus((byte) 1); decrementToZero((MySQLResponseService) service); if (unResponseRrns.size() != 0) { + handlerCommit(rrn); return; } if (rrs.isGlobalTable()) {