taosdata / taosdata/TDengine

taosdump import and export issues

Open
#31,440 2 comments 0 reactions 1 assignee View on GitHub

@yu285 is already working on this.

Since Jul 3, 2025.

bug
Dominant language
C
Stars
25.1k
Forks
5k
Avg merge
4d 59m
Merged PRs (30d)
7

Description

Bug Description
使用taosdump命令备份数据,并导入到另一个数据库,导入后显示OK: 71986355 row(s) dumped in!,但使用select命令无法查询,并且在web页面上也没有发现有新增的数据

To Reproduce

  1. 在数据库A使用命令 taosdump dbname stbname1 stbname2 tbname1 tbname2
  2. 在数据库B中使用命令 taosdump -i ./taosdump.3500782358421 -W --dbname =t1

执行导入命令后数据库日志报错

06/20 06:58:35.565785 00001035 C WAL vgId:8, failed to add field to files
06/20 06:58:35.565790 00001035 C WAL vgId:8, failed to add field to files
06/20 06:58:35.565795 00001035 C WAL vgId:8, failed to add field to files
06/20 06:58:35.565801 00001035 C WAL vgId:8, failed to add field to files
06/20 06:58:35.565808 00001035 C WAL vgId:8, failed to add field to files
06/20 06:58:35.565812 00001035 C WAL vgId:8, failed to add field to files

命令输出日志

INFO:  ------- rename DB Name operations to t1 ------
.OK: [2] 395 row(s) of file(operations.3500782358948.112.avro) be successfully dumped in!
INFO: [2]:80%
INFO:  ------- rename DB Name operations to t1 ------
.xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx..xx.OK: [0] 1671989 row(s) of file(operations.3500782408129.20.avro) be successfully dumped in!
INFO: [0]:95%
INFO:  ------- rename DB Name operations to t1 ------
.OK: [0] 558 row(s) of file(operations.3500782358632.77.avro) be successfully dumped in!
INFO: [0]:100%
.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.OK: [2] 1671978 row(s) of file(operations.3500782408655.8.avro) be successfully dumped in!
INFO: [2]:85%
INFO:  ------- rename DB Name operations to t1 ------
.OK: [2] 2598 row(s) of file(operations.3500782500737.6.avro) be successfully dumped in!
INFO: [2]:90%
INFO:  ------- rename DB Name operations to t1 ------
.OK: [2] 429 row(s) of file(operations.3500782358707.94.avro) be successfully dumped in!
INFO: [2]:95%
INFO:  ------- rename DB Name operations to t1 ------
.OK: [2] 3443 row(s) of file(operations.3500782358466.15.avro) be successfully dumped in!
INFO: [2]:100%
OK: 71986355 row(s) dumped in!

Environment (please complete the following information):

  • TDengine Version [e.g. 3.3.3.0]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.