From 14bc7b03bc728d17374a396dfea62d16dc985251 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 5 Feb 2025 18:20:02 +0800 Subject: [PATCH 1/2] feat:add test logic --- source/client/src/clientTmq.c | 4 ++-- source/dnode/vnode/src/inc/tq.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/client/src/clientTmq.c b/source/client/src/clientTmq.c index c038dc0dfc..461d82b348 100644 --- a/source/client/src/clientTmq.c +++ b/source/client/src/clientTmq.c @@ -1720,7 +1720,7 @@ tmq_t* tmq_consumer_new(tmq_conf_t* conf, char* errstr, int32_t errstrLen) { pTmq->resetOffsetCfg = conf->resetOffset; pTmq->replayEnable = conf->replayEnable; pTmq->sourceExcluded = conf->sourceExcluded; - pTmq->rawData = conf->rawData; + pTmq->rawData = 1; pTmq->enableBatchMeta = conf->enableBatchMeta; tstrncpy(pTmq->user, user, TSDB_USER_LEN); if (taosGetFqdn(pTmq->fqdn) != 0) { @@ -3663,4 +3663,4 @@ TAOS* tmq_get_connect(tmq_t* tmq) { return (TAOS*)(&(tmq->pTscObj->id)); } return NULL; -} \ No newline at end of file +} diff --git a/source/dnode/vnode/src/inc/tq.h b/source/dnode/vnode/src/inc/tq.h index 57e238b499..39e02d6644 100644 --- a/source/dnode/vnode/src/inc/tq.h +++ b/source/dnode/vnode/src/inc/tq.h @@ -178,7 +178,7 @@ int32_t tqExtractDropCtbDataBlock(const void* data, int32_t len, int64_t ver, vo #define TQ_SUBSCRIBE_NAME "subscribe" #define TQ_OFFSET_NAME "offset-ver0" #define TQ_POLL_MAX_TIME 1000 -#define TQ_POLL_MAX_BYTES 1048576 +#define TQ_POLL_MAX_BYTES 10485760 #ifdef __cplusplus } From fc0cf9bf7a563bf112b5351b2e682cecdafb9079 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 5 Feb 2025 18:21:29 +0800 Subject: [PATCH 2/2] feat:add test logic --- tests/system-test/7-tmq/taosx-performance.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system-test/7-tmq/taosx-performance.json b/tests/system-test/7-tmq/taosx-performance.json index 352bdbbd6d..ff554a61d9 100644 --- a/tests/system-test/7-tmq/taosx-performance.json +++ b/tests/system-test/7-tmq/taosx-performance.json @@ -37,7 +37,7 @@ "insert_mode": "taosc", "non_stop_mode": "no", "line_protocol": "line", - "insert_rows": 10000, + "insert_rows": 30, "childtable_limit": 0, "childtable_offset": 0, "interlace_rows": 1,