taosdata/TDengine

after i create a stream in my cluster, a stream check transaction appears and never completes

Open

#28,957 建立於 2024年11月28日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C (5,002 fork)batch import
help wantedquestion

倉庫指標

Star
 (24,849 star)
PR 合併指標
 (平均合併 1天 1小時) (30 天內合併 4 個 PR)

描述

1.版本:3.3.4.3

2.创建数据库语句: create DATABASE test BUFFER 256 CACHESIZE 32 CACHEMODEL 'both' DURATION 1d KEEP 3d precision 'ms' REPLICA 1 VGROUPS 2 SINGLE_STABLE 0;

3.创建超级表语句: CREATE STABLE test.t1 (ts timestamp, lng double, lat double, berth_id varchar(20), speed double) TAGS (device_no varchar(20), terminal_id varchar(20), type int);

4.创建两个流式计算 第一个流式计算 create stream if not exists berthsteam trigger MAX_DELAY 1s watermark 180s into t1.berthsteam TAGS(device_no varchar(20)) SUBTABLE(CONCAT('berthsteam-', device_no)) as select first(ts) as start_time, last(ts) as end_time ,berth_id,timediff(first(ts),last(ts) ,1s) as diff,type from t1.truck partition by tbname as device_no state_window(berth_id); 第二个流式计算 create stream if not exists trucksteam trigger max_delay 60s watermark 180s into t1.trucksteam tags(device_no varchar(20)) subtable(concat('trucksteam-', device_no)) as select _wstart as start_time ,max(speed) as max_speed,avg(speed) as avg_speed from t1.truck partition by tbname as device_no interval(1m)

5.执行一段时间会出现一个流检查事务 图片1

6.造成影响是对应库内,流式计算产生超级表没有更新流检查事务产生之后的数据,想请问一下这个是什么原因造成的?

貢獻者指南