TDengine/source/dnode/mnode/impl/inc
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
..
mndAcct.h TD-10431 rename some funcs 2021-11-29 13:29:13 +08:00
mndAnode.h enh(analysis): add the algorithm in telemetry report. 2025-01-23 00:29:18 +08:00
mndArbGroup.h fix/TS-5805-check-arb 2024-12-25 02:43:51 +00:00
mndBnode.h feat(mqtt): mqtt subscription (#30127) 2025-06-25 14:58:51 +08:00
mndCluster.h feat: support uniq grant 2024-01-22 13:20:15 +08:00
mndCompact.h fix/TD-30742 2024-08-02 04:46:30 +00:00
mndCompactDetail.h more code 2024-11-13 16:17:16 +08:00
mndConfig.h Move rebuild config sdb to after restored. 2024-12-17 11:22:38 +08:00
mndConsumer.h fix(tmq): add log 2025-04-24 11:45:37 +08:00
mndDb.h more code 2024-11-08 11:13:37 +08:00
mndDef.h feat(mqtt): mqtt subscription (#30127) 2025-06-25 14:58:51 +08:00
mndDnode.h Merge branch '3.0' into enh/3.0/TD-31709 2024-12-16 10:00:02 +08:00
mndFunc.h TD-10431 rename some funcs 2021-11-29 13:29:13 +08:00
mndGrant.h feat: support uniq grant 2024-02-13 23:17:05 +08:00
mndIndex.h enh: change redo logs of trans create-stb-index and drop-index as prepare logs 2024-02-23 10:22:58 +08:00
mndIndexComm.h fix iter and case 2023-02-18 18:24:10 +08:00
mndInfoSchema.h feat: system table visible permission 2022-08-24 17:36:10 +08:00
mndInt.h enh: adjust some logs 2025-02-27 09:55:11 +08:00
mndMnode.h feat/restore dnode 2023-05-09 17:15:37 +08:00
mndPerfSchema.h format more code 2022-10-13 11:56:16 +08:00
mndPrivilege.h feat: database engine (taosd) supports IPV6 (#31101) 2025-06-10 09:18:58 +08:00
mndProfile.h mnode monitor 2022-03-03 20:23:53 +08:00
mndQnode.h feat/restore dnode 2023-05-09 17:15:37 +08:00
mndQuery.h fix: fix coverity check issues 2022-10-17 19:48:36 +08:00
mndScheduler.h feat(stream): support stream processing for virtual tables (#30144) 2025-03-15 17:06:48 +08:00
mndShow.h fix/TD-31891-remove-void-stb 2024-09-05 09:58:02 +00:00
mndSma.h tsma avoid fetching tsma for no tsma tables 2024-04-16 14:25:34 +08:00
mndSnode.h enh: force drop dnode 2022-10-31 17:29:24 +08:00
mndStb.h fix/TD-31891-remove-void-stb 2024-09-05 09:58:02 +00:00
mndStream.h fix(stream): collect involved tasks firstly. 2025-05-21 18:41:47 +08:00
mndSubscribe.h feat[TS-6115]: support deletion of topics with active consumers. (#30232) 2025-03-18 14:11:00 +08:00
mndSync.h refact: post sem in mnode while sync timeout 2022-12-13 11:11:22 +08:00
mndTelem.h TD-10431 rename some funcs 2021-11-29 13:29:13 +08:00
mndTopic.h fix:[TD-31115] add consumer check when drop topic or group in tmq 2024-08-06 19:27:42 +08:00
mndTrans.h enh: [TS-6089] trans-parallel (#30265) 2025-05-29 16:49:43 +08:00
mndUser.h enh: return error code 2024-07-22 15:29:37 +08:00
mndVgroup.h support meta_only option 2025-02-25 17:57:25 +08:00
mndView.h feat: support view meta updating 2023-10-13 16:29:34 +08:00