Skip to content

Commit

Permalink
fix: taosbenchmark schemaless refine (#576)
Browse files Browse the repository at this point in the history
* test: change test branch

* fix: optimize data preparing for sml json

* fix: use unformat json print in progressive

* test: add sml json alltypes interlface test

* fix: refactor debug print and echo print

* fix: typos in 2.x-centos-release.yml and coveralls.yml

* chore: add 3.0-macos-debug.yml

* fix: update macos yml

* fix: more ymls

* fix: workflow env variables

* fix: distinguish standard json and taos json

* fix: typos

* fix: distinguish logic

* test: split sml command line test

* test: improve test coverage in taosbenchmark/json/sml_taosjson_alltypes.json

* test: chang test branch

* fix: cmd line coverage test

* test: revert test branch for 3.0-alpine.yml

* fix: issues codacy reports

* fix: support opentsdb standard json

* fix: sml json test for 2.x

* fix: memory leak after use dbname

* fix: mem leak when sml insert and ctrl-c

* fix: id tag in sml-json data
  • Loading branch information
sangshuduo committed Feb 11, 2023
1 parent 74c0357 commit 05b61e0
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/3.0-coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-macos-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-non-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
echo "clone TDengine 3.0 on ${{ steps.setup.outputs.uname }}"
git clone --branch fix/sangshuduo/TD-22357-invalid-read-ctrlc --depth 1 https://github.com/taosdata/TDengine > /dev/null || exit 1
git clone --branch fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine --depth 1 https://github.com/taosdata/TDengine > /dev/null || exit 1
echo "build TDengine 3.0 on ${{ steps.setup.outputs.uname }}"
cd TDengine || exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-taosBenchmark-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-taosBenchmark-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-taosdump-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-taosdump-release-ws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-taosdump-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: Change time zone
if:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3.0-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'fix/sangshuduo/TD-22357-invalid-read-ctrlc'
ref: 'fix/sangshuduo/TD-21932-taosbenchmark-schemaless-refine'

- name: create debug directory
if: |
Expand Down
1 change: 0 additions & 1 deletion src/benchData.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,6 @@ void generateSmlJsonTags(tools_cJSON *tagsList, SSuperTable *stbInfo,
char * tbName = benchCalloc(1, TSDB_TABLE_NAME_LEN, true);
snprintf(tbName, TSDB_TABLE_NAME_LEN, "%s%" PRIu64 "",
stbInfo->childTblPrefix, tbSeq + start_table_from);
tools_cJSON_AddStringToObject(tags, "id", tbName);
char *tagName = benchCalloc(1, TSDB_MAX_TAGS, true);
for (int i = 0; i < stbInfo->tags->size; i++) {
Field * tag = benchArrayGet(stbInfo->tags, i);
Expand Down
2 changes: 1 addition & 1 deletion src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ int32_t execInsert(threadInfo *pThreadInfo, uint32_t k) {
}
}

if (code != TSDB_CODE_SUCCESS) {
if (code != TSDB_CODE_SUCCESS && !g_arguments->terminate) {
errorPrint(
"failed to execute schemaless insert. "
"content: %s, code: 0x%08x reason: %s\n",
Expand Down

0 comments on commit 05b61e0

Please sign in to comment.