You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "刘珍 (Jira)" <ji...@apache.org> on 2022/01/13 02:15:00 UTC

[jira] [Created] (IOTDB-2373) [Trigger]There should be a timeout rule

刘珍 created IOTDB-2373:
-------------------------

             Summary: [Trigger]There should be a timeout rule
                 Key: IOTDB-2373
                 URL: https://issues.apache.org/jira/browse/IOTDB-2373
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Server
    Affects Versions: 0.13.0-SNAPSHOT
            Reporter: 刘珍
         Attachments: TriggerExample.jar

触发器应该有超时规则。
比如,我创建一个触发器,连接的mqtt服务没有启动或者mqtt的ip写错了,
这个触发器会一直卡着,
后面正确创建的触发器会一直卡着。
更严重的是,重启iotdb也会一直卡着。
我需要删除data文件夹,重来才可以。

set storage group to root.sg1;
CREATE TIMESERIES root.sg1.dev1.s_1 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;
CREATE TIMESERIES root.sg1.dev1.s_2 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;
CREATE TIMESERIES root.sg1.dev1.s_3 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;
CREATE TIMESERIES root.sg1.dev1.s_4 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;
CREATE TIMESERIES root.sg1.dev1.s_5 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;
CREATE TIMESERIES root.sg1.dev1.s_6 WITH DATATYPE=DOUBLE, ENCODING=PLAIN;

//下面的触发器中的remote_ip写错了,卡着
CREATE TRIGGER "after_trig1"
AFTER INSERT
ON root.sg1.dev1.s_1
AS 'TriggerExample'
WITH (
  'trig_name'='after_trig1',
  'ts_type' = 'double', 
  'remote_ip' = '192.168.130.3',
  'target_device'='root.lz.alerting',
  'window_size'='10'
);

//再开启cli,创建正确的触发器,卡着
CREATE TRIGGER "after_trig2"
AFTER INSERT
ON root.sg1.dev1.s_2
AS 'TriggerExample'
WITH (
  'trig_name'='after_trig2',
  'ts_type' = 'double', 
  'remote_ip' = '192.168.130.1',
  'target_device'='root.lz.alerting',
  'window_size'='10'
);

重启iotdb,卡着。




--
This message was sent by Atlassian Jira
(v8.20.1#820001)