You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/12/13 03:25:01 UTC
(iotdb) 02/04: fix bug
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch optimize_records
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 175aadc5177f529de9d35e0f836f30081fe43084
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Dec 13 09:46:38 2023 +0800
fix bug
---
.../db/consensus/statemachine/dataregion/DataExecutionVisitor.java | 2 +-
.../java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/consensus/statemachine/dataregion/DataExecutionVisitor.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/consensus/statemachine/dataregion/DataExecutionVisitor.java
index 53813fb93ea..fe224531267 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/consensus/statemachine/dataregion/DataExecutionVisitor.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/consensus/statemachine/dataregion/DataExecutionVisitor.java
@@ -94,7 +94,7 @@ public class DataExecutionVisitor extends PlanVisitor<TSStatus, DataRegion> {
try {
dataRegion.insert(node);
return StatusUtils.OK;
- } catch (BatchProcessException e) {
+ } catch (WriteProcessException e) {
LOGGER.warn("Batch failure in executing a InsertRowsNode.");
TSStatus firstStatus = null;
// for each error
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
index 60d70608358..1be336cce0a 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
@@ -3077,7 +3077,7 @@ public class DataRegion implements IDataRegionForQuery {
*
* @param insertRowsNode batch of rows belongs to multiple devices
*/
- public void insert(InsertRowsNode insertRowsNode) throws BatchProcessException {
+ public void insertOld(InsertRowsNode insertRowsNode) throws BatchProcessException {
for (int i = 0; i < insertRowsNode.getInsertRowNodeList().size(); i++) {
InsertRowNode insertRowNode = insertRowsNode.getInsertRowNodeList().get(i);
try {
@@ -3092,7 +3092,7 @@ public class DataRegion implements IDataRegionForQuery {
}
}
- public void insertNew(InsertRowsNode insertRowsNode) throws WriteProcessException {
+ public void insert(InsertRowsNode insertRowsNode) throws WriteProcessException {
if (enableMemControl) {
StorageEngine.blockInsertionIfReject(null);
}