You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/06/01 12:59:53 UTC
[incubator-iotdb] branch master updated: continue write (#1297)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 6a3e40a continue write (#1297)
6a3e40a is described below
commit 6a3e40a3f0d4cb9f06ebfb2c46686df8d6af95c4
Author: Jialin Qiao <qj...@mails.tsinghua.edu.cn>
AuthorDate: Mon Jun 1 20:59:46 2020 +0800
continue write (#1297)
---
server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java b/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
index 241d0b1..106333f 100644
--- a/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
+++ b/server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
@@ -94,11 +94,13 @@ public class PublishHandler extends AbstractInterceptHandler {
plan.setTypes(new TSDataType[event.getValues().size()]);
plan.setInferType(true);
- boolean status;
+ boolean status = false;
try {
status = executeNonQuery(plan);
} catch (QueryProcessException | StorageGroupNotSetException | StorageEngineException e ) {
- throw new RuntimeException(e);
+ LOG.warn(
+ "meet error when inserting device {}, measurements {}, at time {}, because ",
+ event.getDevice(), event.getMeasurements(), event.getTimestamp(), e);
}
LOG.debug("event process result: {}", status);