Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-4343

[master]After starting mqtt, after executing Trigger's SQL, there is an NPE error in the log

    XMLWordPrintableJSON

Details

    • 2022-9-Cluster

    Description

      commit 518dcfbfa461ffe4912fba18cb29299416301588

      After enabling MQTT, execute the trigger use case, and find that there is an NPE authorization authentication error in the log.

      Step 1: In the iotdb-datanode.properties ,modify parameter:
      enable_mqtt_service=true
      Step 2: Start server, Enter CLI

      Step 3: Execute SQL:

      set storage group to root.sg1;
      CREATE TIMESERIES root.sg1.dev1.s_1 WITH DATATYPE=INT32, ENCODING=GORILLA;
      CREATE TIMESERIES root.sg1.dev1.s_2 WITH DATATYPE=INT64, ENCODING=PLAIN;
      CREATE TIMESERIES root.sg1.dev1.s_3 WITH DATATYPE=float, ENCODING=RLE;
      CREATE TIMESERIES root.sg1.dev1.s_4 WITH DATATYPE=double, ENCODING=TS_2DIFF;
      CREATE TIMESERIES root.sg1.dev1.s_5 WITH DATATYPE=text, ENCODING=DICTIONARY;
      CREATE TIMESERIES root.sg1.dev1.s_6 WITH DATATYPE=boolean, ENCODING=PLAIN;
      
      CREATE TRIGGER trig1
      AFTER INSERT
      ON root.sg1.dev1.s_1
      AS 'TriggerTest'
      WITH (
        'ts_type' = 'int32',
        'remote_ip' = '127.0.0.1',
        'trig_name'='trig1'
      );
      
      CREATE TRIGGER trig2
      AFTER INSERT
      ON root.sg1.dev1.s_2
      AS 'TriggerTest'
      WITH (
        'ts_type' = 'int64',
        'remote_ip' = '127.0.0.1',
        'trig_name'='trig2'
      );
      
      insert into root.sg1.dev1(time,s_1,s_2) values(1,100,200);
      insert into root.sg1.dev1(time,s_1,s_2) values(2,300,400);
      
      select s_1,s_2,s_3,s_4,s_5,s_6 from root.sg1.dev1;
      select local_trig1,local_trig2,remotetrig1,remotetrig2 from root.target.alerting; 
        
      delete timeseries root.sg1.dev1.s_1;
      insert into root.sg1.dev1(time,s_2) values(100,1600);

      Attachments

        1. log_all.log
          29 kB
          xiaozhihong

        Issue Links

          Activity

            People

              spricoder Hongyin Zhang
              xiaozhihong xiaozhihong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: