Commit graph

54 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
dongming chen
b318684a52
fix: mnode-status-case (#30871) 2025-04-28 13:42:11 +08:00
Minglei Jin
856bb2721a
fix(tdb/flush): malloc from os when no pages flushed (#30867) 2025-04-25 17:22:37 +08:00
Shengliang Guan
1553d507e5 enh: add password character rules 2024-12-10 11:08:58 +00:00
yihaoDeng
2a26f48a1b fix double compress when retry 2024-11-21 14:59:51 +08:00
chenhaoran
ed1e3c304a test: scan returned values in ci 2024-08-02 14:03:07 +08:00
Shengliang Guan
7edde3a780 test: add log and asan case 2022-11-18 10:04:28 +08:00
Shengliang Guan
997089f61d test: adjust unstable case 2022-11-17 19:18:32 +08:00
Shengliang Guan
b8fdafe8ee fix: not reconfig if unchanged 2022-10-21 15:47:26 +08:00
Shengliang Guan
78fb1911d4 enh: refactor the code to create and delete mnodes 2022-10-14 17:59:09 +08:00
Xiaoyu Wang
d9d892bf29 enh: show command optimize 2022-08-11 21:21:59 +08:00
Xiaoyu Wang
44df51f98f enh: show command optimize 2022-08-11 20:56:31 +08:00
Xiaoyu Wang
9a9aef985e enh: show command optimize 2022-08-11 20:26:40 +08:00
Shengliang Guan
5185fa90c5 test: add reproduce codes 2022-07-28 11:48:14 +08:00
Shengliang Guan
3b47518d45 test: adjust case 2022-07-28 10:37:04 +08:00
afwerar
ca102bdccd test: fix mnode leader follower order error 2022-07-23 16:36:02 +08:00
Shengliang Guan
0cc28d6ee2 test: minor changes 2022-06-25 08:27:11 +08:00
Shengliang Guan
ef00464f9c fix: retry 12 seconds if lock file failed 2022-06-23 16:35:05 +08:00
Shengliang Guan
b434ec8cd8 test: minor changes 2022-06-23 14:30:35 +08:00
Shengliang Guan
40ed0e22bf test: minor changes 2022-06-23 14:28:32 +08:00
Shengliang Guan
4a4d5cbd07 test: minor changes 2022-06-20 20:22:01 +08:00
Shengliang Guan
ae46031121 fix: mnode basic5.sim 2022-06-16 21:31:45 +08:00
Shengliang Guan
674ab14170 test: case for mnode 2022-06-11 16:56:52 +08:00
Shengliang Guan
3011729368 test: case for mnode 2022-06-11 16:52:03 +08:00
Shengliang Guan
1e8942e6b6 fix: cant drop mnode which is offline 2022-06-11 15:22:26 +08:00
Shengliang Guan
34d7d5fdbc test: reput mnode case 2022-06-11 14:22:18 +08:00
Shengliang Guan
33b5efc21f test: execute trans in follower 2022-06-11 14:11:10 +08:00
Minghao Li
6ba0f160b7 fix(sync): compatibility for both mnode(use snapshot) and vnode(no snapshot) 2022-06-09 17:10:31 +08:00
Shengliang Guan
d80d55c0f7 test: case for mnode 2022-06-09 14:14:55 +08:00
Shengliang Guan
bf3c767dcc test: restore mnode basic test 2022-06-07 20:27:45 +08:00
Shengliang Guan
ee757b00fb test: reproduce coredump 2022-06-07 19:43:12 +08:00
Shengliang Guan
0bade86534
Merge pull request #13410 from taosdata/fix/mnode
enh: adjust vnode replica and some logs
2022-06-02 17:06:10 +08:00
Shengliang Guan
e35ebdadac refactor: rename LEADER to leader 2022-06-02 14:35:59 +08:00
Liu Jicong
114792424e fix(mnode): try fix case 2022-06-02 11:28:25 +08:00
Shengliang Guan
d56c574fe4 enh: add creating and dropping states to mnode 2022-06-01 21:39:04 +08:00
Shengliang Guan
1907c0e66c enh: add creating and dropping states to mnode 2022-06-01 21:16:22 +08:00
Shengliang Guan
e10edb80ef fix: the role should be OFFLINE after mnode stopped 2022-06-01 10:21:27 +08:00
Shengliang Guan
8baf32fc23 fix: the max number of mnodes is limited to 3 2022-06-01 09:41:43 +08:00
Shengliang Guan
335b56ed81 fix: set standby while create mnode 2022-05-27 21:26:04 +08:00
Shengliang Guan
c44ec05229 fix: error in sync sem 2022-05-27 15:21:59 +08:00
Shengliang Guan
856c0eed7c Merge remote-tracking branch 'origin/fix/dnode' into fix/mnode 2022-05-27 09:49:12 +08:00
Shengliang Guan
c943497ad5 test: case for drop mnode 2022-05-27 09:48:25 +08:00
Shengliang Guan
babefefa64 test: case for mnode sync 2022-05-26 22:50:46 +08:00
Shengliang Guan
1ed7a4be11 fix: msg redirect while mnode replica large than 0 2022-05-26 22:39:11 +08:00
Shengliang Guan
e40dd52100 fix: drop mnode 2022-05-26 20:34:03 +08:00
Shengliang Guan
5687135b70 fix: status msg 2022-05-26 20:21:00 +08:00
Shengliang Guan
f5e3b409ab refactor: add some log 2022-05-26 16:47:37 +08:00
Shengliang Guan
1100ec3fb3 refacor: alter mnode 2022-05-25 17:44:43 +08:00
Shengliang Guan
3a36979576 refactor: let all operations of mnode into the sync log 2022-05-25 14:49:08 +08:00
Shengliang Guan
7ee2e5a37f refactor: let all operations of mnode into the sync log 2022-05-25 12:54:49 +08:00