Commit graph

37 commits

Author SHA1 Message Date
Minglei Jin
66c4ef3e90
feat(mqtt): mqtt subscription (#30127)
* feat(mqtt): Initial commit for mqtt

* chore(xnode/mnd): xnode message handlers for mnode

* chore(mnd/xnode): mnode part for xnode

* chore(xnode/translater): fix show commands

* fix(ast/creater): fix xnode create option

* fix(xnode/ci): fix ci & doc's error codes

* chore(xnode/sql): make create/drop/show work properly

* fix(xnode/sql): commit new files

* fix(xnode/sql): commit cmake files

* fix: fix testing cases

* fix(xnode/tsc): fix tokens

* fix(ast/anode): fix anode update decl.

* fix(xnode/error): fix xnode error codes

* fix: xnode make/destroy

* chore: xnode with option & dnode id

* chore: use taosmqtt for xnode

* chore: new error code for xnode launching

* chore(xnode): new error code

* chore: header for _xnode_mgmt_mqtt

* chore: source for _xnode_mgmt_mqtt

* chore: remove test directory from cmake

* chore: remove taosmqtt for ci to compile

* chore: remove taosudf header from xnode

* chore: new window macro

* chore: remove xnode mgmt mqtt for windows compilation

* Revert "chore: remove xnode mgmt mqtt for windows compilation"

This reverts commit 197e1640c7.

* chore: cleanup code

* chore: xnode mgmt comment windows part out

* chore: mgmt/mqtt, move uv head toppest

* xnode/mnode: create xnode once per dnode

* fix(xnode/systable/test): fix column count

* xnode/sdb: renumber sdb type for xnode to make start/stop order correct

* xnode/mqtt: new param mqttPort

* fix SXnode's struct type

* transfer dnode id to mqtt subscription

* tmqtt: remove uv_a linking

* tmqtt/tools: sources for tools

* tools: fix windows compilation

* tools/producer: fix windows sleep param

* tools/producer: fix uninited var rc

* make tools only for linux

* test/mnodes: wail 1 or 2 seconds for offline to be leader

* update topic producer tool for geometry data type testing

* format tool sql statements

* show xnodes' ep

* make shell auto complete xnodes

* use usleep instead of sleep

* mqtt/proto: first version mqtt protocol

* remove assert styles

* build with linux only

* fix libuv for taosmqtt building

* fix log printing

* mem: use ttq_ prefix instead of tmqtt

* xnode/parser/proto: protocol option for xnode

* xnode/translater/option: translate xnode option proto

* xnode/translator: translate proto param

* xnode/tmsg: encode/decode proto param

* xnode/mnode: proto parma for mndXnode

* xnode/proto: protocol param for xnode

* xnode/mqtt: save/load proto from xnode json

* rename tmqtt proto header

* rename head directories

* rename header name styles

* restyle func names

* update

* update

* use camel db

* use camel for cxt

* update count of information_schema

* fix exceptional cases

* fix w.r.t reviews

* fixes w.r.t reviews

* use ttq_free

* append xnode msgs

* update information schema count

* support tmq meta data sub

* success typo fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix error line var w.r.t. suggestions from copilot

* denote mqtt node with bnode instead of xnode

* smoke testing for mqtt

* soak testing

* new package for test framework: paho 2.1.0

* import mqtt into util

* fix soak testing

* test/soak: user 5 topics per client

* test/soak: cover qos

* update docker image references to tdengine-ci:0.1 in CI scripts and common.py

* refactor: rename bnode msg to backup node

* refactor: rename xnode to bnode 1

* refactor: rename xnode to bnode 2

* refactor: rename xnode to bnode 3

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 5

* refactor: rename xnode to bnode 6

* refactor: rename some files 1

* refactor: rename some files 2

* refactor: rename some files 3

* refactor: rename some files 4

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
2025-06-25 14:58:51 +08:00
Shengliang Guan
3a7d89a6bb refact: remove bnode codes 2022-10-18 17:34:58 +08:00
Shengliang Guan
f4c3141821 refactor: rpc msg handler 2022-05-21 18:30:17 +08:00
Shengliang Guan
7341f68cbe refactor: adjust msgcb 2022-05-19 16:56:50 +08:00
Shengliang Guan
a41dc27e6d refactor: dnode monitor 2022-05-19 11:10:13 +08:00
Shengliang Guan
03d15c9e1f fix: variable initialization order 2022-05-18 20:41:56 +08:00
Shengliang Guan
c50bb310de refactor: adjust msg logs 2022-05-18 17:22:43 +08:00
Shengliang Guan
30574a17b6 refactor: adjust msg logs 2022-05-18 16:58:28 +08:00
Shengliang Guan
b16a21b232 refactor: multi-process test mode 2022-05-17 14:34:16 +08:00
Shengliang Guan
36fe62fbd2 refactor: make more object global 2022-05-16 23:23:49 +08:00
Shengliang Guan
1f886b1117 refactor: make more object global 2022-05-16 22:31:56 +08:00
Shengliang Guan
7729ce2eb3 refactor: adjust SRpcMsg 2022-05-16 16:13:51 +08:00
Shengliang Guan
fc94b71c80 refactor: adjust SRpcMsg 2022-05-16 15:17:11 +08:00
Shengliang Guan
ddc692b9f8 refactor: adjust dnode logs 2022-05-15 13:29:25 +08:00
Shengliang Guan
a5a4da4d49 refactor: multi process mode 2022-05-14 18:16:52 +08:00
Shengliang Guan
823691b6b2 refactor: node mgmt 2022-05-12 21:25:32 +08:00
Shengliang Guan
447c9504a3 refactor: node mgmt 2022-05-12 16:57:33 +08:00
Shengliang Guan
65e8316f35 refactor: node mgmt 2022-05-11 23:18:48 +08:00
Shengliang
e278a4f434 refactor: node mgmt 2022-05-11 21:19:33 +08:00
Shengliang
47b9216b95 refactor: node mgmt 2022-05-11 17:42:58 +08:00
Shengliang
fe65524592 refactor: node mgmt 2022-05-10 23:53:42 +08:00
Shengliang
c4b409c31e refactror: node mgmt 2022-05-10 22:46:43 +08:00
Shengliang Guan
b219224e1f refactror: node mgmt 2022-05-10 16:54:26 +08:00
Shengliang Guan
ede2bc03fc refactor: node mgmt 2022-05-09 11:11:38 +08:00
Shengliang Guan
fcd0d2722f Merge remote-tracking branch 'origin/fix/hb' into fix/tsim 2022-04-24 17:59:19 +08:00
Shengliang Guan
c5ea02c4ed fix(cluster): disable startup on create dir failed 2022-04-24 17:51:34 +08:00
yihaoDeng
b384167087 enh(rpc): fix hb problem 2022-04-23 18:29:45 +08:00
yihaoDeng
fefd25067b fix rpc bug 2022-04-22 23:58:34 +08:00
Shengliang Guan
7c588cc074 feat: report startup steps 2022-04-19 19:43:55 +08:00
Shengliang Guan
3b54d90350 refact(cluster): node mgmt 2022-04-13 21:36:36 +08:00
Shengliang Guan
e770a6e974 refact(cluster): node mgmt 2022-04-13 16:23:03 +08:00
Shengliang Guan
3663c6441d refact(cluster): node mgmt 2022-04-13 15:52:14 +08:00
Shengliang Guan
318d774ba9 refact(cluster): node mgmt 2022-04-13 14:00:56 +08:00
Shengliang Guan
271264f626 refact(cluster): node mgmt 2022-04-13 10:00:50 +08:00
Shengliang Guan
3de4b0ad05 refact(cluster): node mgmt 2022-04-13 09:59:33 +08:00
Shengliang Guan
4df0c48fc0 refact(cluster): node mgmt 2022-04-12 19:43:42 +08:00
Shengliang Guan
35e29f0bf6 refact(cluster): node mgmt 2022-04-12 18:11:59 +08:00