* fix: use etool.taoskFile() in test_key_generation for Windows compat.
* fix: resolve taosk.exe path on Windows in Security tests
On Windows the taosk binary is taosk.exe. Three fixes:
- taosd.py: use platform.system() to append .exe when looking up taosk
path during encrypt-key setup before taosd starts; previously the
lookup always failed silently so master.bin was never generated
- test_key_update.py: replace hardcoded 'taosk' with etool.taoskFile()
- test_key_backup_restore.py: same fix as above
Made-with: Cursor
* fix: build taosk on windows.
* fix: taosd error at windows.
* fix: skip AES-128-CBC test on Windows (Linux enterprise only)
AES-128-CBC encryption algorithm is only registered in mndEncryptAlgr.c
when TD_ENTERPRISE && LINUX is defined. The Windows builtin CBC
implementation always uses SM4 regardless of algorithm name, so
AES-128-CBC cannot be supported on Windows. Skip the AES database
creation and verification steps on non-Linux platforms.
Made-with: Cursor
* Revert "fix: skip AES-128-CBC test on Windows (Linux enterprise only)"
This reverts commit 67e0e81ef9.
* fix: remove debug log
* fix: remove assert
* fix: delete unused code
* enh: [TD-37251] Support expr in state window.
* feat(stream): support expr in state window trigger
* enh: [TD-37251] Fix SCL_IS_CONST_CALC condition.
* fix(stream): set ver in wal
* fix: print code
* fix: increase runner replica num
* fix: trigger mem error
* fix: sliding _tnext_ts value
* fix(stream): disable tagFilterCache in stream reader trigger
* fix: crash
* Revert "fix(stream): fix history calc finish check"
This reverts commit f93d17f1d2.
* Revert "fix(stream): fix calc request allocation in trigger"
This reverts commit c5410f6da0.
* fix(stream): fix calc request allocation in trigger
* enh: [TD-37251] External window support more placeholder.
* fix(stream): modify size of return from 1000000->4096
* enh: [TD-37251] Modify error msg when stream query do not have from clause.
* fix(stream): add log for group not found
* fix(stream): do not return gid=0 in walMetaData interface
* enh: [TD-37251] Fix missing ts column in vtable query.
* fix: test case build failed
* fix: invalid read issue
* fix(stream): add vtable logic
* fix(stream): encode error in wal
* fix(stream): add vtable logic
* fix(stream): add log
* fix: diff funcition crash
* Revert "Merge branch 'enh/TD-37251-3.0-dropoutput' into enh/TD-37251-3.0"
This reverts commit e93cbd6fd4, reversing
changes made to dc3230591d.
* Revert "Merge branch 'enh/TD-37251-3.0-vtable' into enh/TD-37251-3.0"
This reverts commit dc3230591d, reversing
changes made to 085e086782.
* fix(stream): fix block data len is too large if data type is vchar
* fix: drop output table
* feat: runner delete output table
* process pDropBlock in trigger task.
* fix(stream): opti log level
* fix(stream): build block for drop table
* fix(stream): set gid for normal table
* fix(stream): set gid for normal table
* feat: Support delete output.
* fix(stream): rows error
* fix(stream): memory leak
* enh: [TD-37251] Fix external window wrong ts column.
* fix(stream): fix calc time check in batch mode
* fix: merge aligned external window issue
* Revert "fix(stream): fix calc time check in batch mode"
This reverts commit d895b7f577.
* fix(stream): add test case
* fix(stream): add insert drop table logic
* fix: external window end issue
* fix(stream): add test case
* fix(stream): fix trigger pull data
* fix(stream): fix history calc request
* enh: drop table on snode
* fix(stream): adjust hash index if data is filtered in wal
* fix(stream): rollback
* enh: add merge aligned extwin window row idx
* fix: drop output table
* fix: compile issue
* enh: [TD-37251] Add flag to identify interval window is overlapped
* fix: overlap
* fix(stream): set gid=-1 for initialized
* fix(stream): modify log level
* fix: trigger slow issue
* fix(stream): add basic test for obj pool
* fix(stream): fix metadata clear in trigger
* fix(stream): fix idle runner allocation in trigger
* fix: handle agg output on externalWin
* fix: test case
* fix(stream): adjust log
* fix: reset pCtx pOutput
* fix: memory leak
* fix: search first win for tsCol
* fix(stream): add test case for schema change
* fix: mem leak
* fix: mem leak
* Reapply "Merge branch 'enh/TD-37251-3.0-vtable' into enh/TD-37251-3.0"
This reverts commit b508e66958.
* fix(stream): fix virtual table data pull
* fix(stream): fix set table request
* fix(stream): process empty uidlist
* fix(stream): fix set table request
* fix(stream): fix data new request in trigger
* fix(stream): tablelist error for vtable
* fix(stream): block ver is null
* fix(stream): remove version limition for wal
* fix(stream): block rows error
* fix(stream): fix pending calc param in batch mode
* fix(stream): auto create table
* fix(stream): fix stream vtable data merge
* fix: _tcurrentts
* fix(stream): destroy hash
* fix(stream): fix trigger status
* fix(stream): colId error in vtable
* fix(stream): update nrows of vtable data block
* fix(stream): fix trigger status
* fix(stream): enable low latency calc for period trigger
* fix: test case file path
* fix: test case file path
* fix: string to node in reader
* enh: add test log
* fix(stream): increase wait time of non-low-latency mode
* fix(stream): fix column capacity in scalar calculation
* fix(stream): fix column capacity in trigger expr calculation
* fix: get origTableInfos
* fix(stream): fix calc data pull in trigger
* fix(stream): fix calc data cache write in trigger
* enh: [TD-37251] Add flag to identify interval wind
* fix: external window memory usage issue
* fix(stream): fix epxr result column in trigger
* fix(stream): add metaCache for calc plan
* fix(stream): fix stream obj list clear
* fix(stream): rollback
* enh: [TD-37251] Add flag to identify interval wind
* fix: mem free
* fix(stream): add metaCache for calc plan
* fix(stream): fix calc data cache write in trigger
* fix(stream): fix calc data cache write in trigger
* enh: optimize external result block memory
* fix(stream): modify logic of judge table for create table
* fix(stream): fix event window check in trigger
* fix(stream): fix count window check in trigger
* fix(stream): colSize=0 while encoding block because pDataCol->hasNull is false in secode time & reload table list if create table
* enh: optimize stream memory
* fix(stream): trigger tag error
* fix: add log
* fix(stream): fix calc data write in trigger
* fix: drop output table
* fix(stream): fix max delay in trigger
* fix: drop output table
* fix(stream): fix max delay in trigger
* fix(build): handle return value of function
* fix(stream): read gid error if it is child table in stream
* fix(stream): fix calc param of history calculation
* fix(stream): fix recalc of delete data
* fix(stream): fix calc data of period trigger
* fix(stream): fix cache read check
* fix(stream): filter error in calc plan
* fix: reset externla window expr
* fix(stream): fix calc parm of max delay
* fix: time range and case issues
* fix(stream): fix crash in trigger
* fix: case issues
* fix: fix window node mem leak.
* fix(stream): fix meta data clear in trigger
* fix(stream): table schema is old in TsdbDataRequest for vtable
* fix: fix slingding window place holder check condition.
* Revert "fix: fix slingding window place holder check condition."
This reverts commit ad864a1dc1.
* fix(stream): null pointer error
* fix: case issue
* fix(stream): calc data error for vtable
* fix(stream): fix data sorter in trigger
* fix(stream): add log for delete data
* fix(stream): fix start version of realtime calculation
* fix(stream): fix cache data merger of vtable
* fix: case issues
* fix(ci): upgrade stream cases in test_cols_function
* fix(stream): gid not found if change tag value
* fix: fix slingding window place holder check condition.
* fix(stream): fix virt table info request in trigger
* fix(stream): set gid = uid if stream table type != SUPER table
* fix: clean cache data by group
* fix: add block info and case issues
* fix: fix heap-buffer-overflow.
* fix(stream): fix state window with extend param
* fix: fix access null pointer.
* fix: case issues
* fix: case issue
* fix(stream): fix ignore_nodata_trigger option for period trigger
* fix(stream): fix pseudo col fetch for calc data
* fix: Extend checking time to avoid timeout.
* fix: case issues
* fix(stream): fix group col fetch for virtual tables
* fix(stream): tag is NULL for non vtable
* fix(stream): fix sliding check of virtual table
* test(stream): check stream status after create all streams
* fix: add log
* fix(stream): fix wal meta truncate when ignore disorder
* fix(stream): gid not found for child table
* fix: fix place holder condition pushdown error.
* fix(stream): suid not equal when delete data for child table
* fix: id issue
* fix(stream): disable recalc for count trigger
* fix: cast result rowSize error in project
* fix(stream): add log for tsdb meta
* fix(stream): fix gid in tsdb meta request
* fix(stream): fix wend of unclosed windows
* fix(stream): fix ignore_nodata_trigger option for period trigger
* fix: case issues
* fix(stream): fix calc data pull for empty interval window
* fix: fix ext window condition.
* fix(ci): smaBasic performance check affectd by debug level log
* fix(stream): add suid when set table list for vtable
* fix: forbid using prefilter when using %%trows an trigger table is virtual table.
* fix: forbid prefilter %%trows cases.
* fix(stream): sort cid in tsdbVirtalDataReq
* fix: forbid prefilter %%trows cases.
* fix(stream): add log for virtual table tsdb data
* fix(stream): get delete msg for vtable
* fix: winRowIndex
* Revert "fix: winRowIndex"
This reverts commit e08b41cf96.
* fix(stream): fix data merge in trigger
* test(stream): fix case ans
* fix(stream): fix empty calc data pull for period trigger
* fix(stream): col index error for tsdbVirtalDataReq
* fix(stream): pTableList is NULL for vtable
* test(stream): fix case ans
* fix(stream): fix notification in trigger
* fix(stream): memory leak
* fix(stream): fix virtual data pull in trigger
* test(stream): fix case ans
* fix(stream): col index error for tsdbVirtalDataReq
* fix(stream): pTableList is NULL for vtable
* test(stream): fix case ans
* fix(stream): fix notification in trigger
* fix(stream): memory leak
* fix(stream): fix virtual data pull in trigger
* test(stream): fix case ans
* fix: case issue
* fix: crash issue
* fix: forbid prefilter %%trows cases.
* fix(stream): session case
* fix(stream): fix data pull for virtual tables
* fix(stream): add log
* fix(stream): fix calc req send in batch mode
* fix: fix stream UT
* fix(stream): tablelist is null for non vtable
* fix: mem leak
* fix(stream): fix compile error in trigger
* fix: return code issue
---------
Co-authored-by: dapan1121 <wpan@taosdata.com>
Co-authored-by: facetosea <285808407@qq.com>
Co-authored-by: Jing Sima <simondominic9997@outlook.com>
Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com>
Co-authored-by: Tony Zhang <tonyzhang@taosdata.com>
* add API to use s3 as shared storage
* support using local file system as shared storage
* upload file to shared storage
* support read, compact and drop
* finish basic mnode & vnode msg processing
* follower sync migration state
* implement mnode transaction, and improve log
* send migration progress msg to dnode to avoid deadlock
* implement following migration
* remove mcount
* avoid redo migration on startup
* avoid follower deadlock when leader is down
* trigger migrate by timer, avoid compact after migration
* comment out the usage of 'tcs' functions in stream
* change config item prefix from s3 to ss
* change db option prefix from s3 to ss
* rename s3 data struct, function, file to ss
* rename s3 macro to ss
* update s3 sql to ss
* rename remaining s3 items to ss
* check ss configruation, improve s3 retry
* grant object storage -> shared storage, check ssEnabled
* fix memory leaks
* update build options
* omit sensitive information when dump config
* fix backward compatibility issue
* fix issues found in ci-checks
* fix some failed test cases
* avoid follower timeout and improve log
* fix: follower timeout because migration status not updated
* refuse migration if there's an in progress one
* fix ss test case
* remove garbage files and other minor improvement
* fix failed test cases
* update unit test
* fix failed test case
* fix failed test case
* update document
* update document and fix failed test cases
* fix minor issues in code, test and document
* check new commit after migration task is scheduled
* fix several issus
1. migrate information cannot be dropped sometimes because progress response was put into read queue.
2. memory leak in rare cases
3. data corruption in rare cases
4. failed test case
* add shared storage upgrade tool
* fix compile error
* 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>