obdumper导出空库报错

【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】obdumper
【 使用版本 】4.2.7
【问题描述】编写脚本,让obdumper循环导出数据库,遇到空库,报错
【复现路径】obdumper -D ‘null_database’
【附件及日志】
2024-01-03 13:24:53 [INFO] Load jdbc driver class: “com.oceanbase.jdbc.Driver” finished
2024-01-03 13:24:53 [INFO] Querying table metadata, this might take a while…
2024-01-03 13:24:53 [WARN] No tables are exists in the schema: “null_database”
2024-01-03 13:24:53 [INFO] Ignore to query table entry for any tables as they are all empty in the schema
2024-01-03 13:24:53 [INFO] Generating sub-tasks by partitions and primary/unique keys…
2024-01-03 13:24:53 [ERROR] Dump failed! Error: No dump tasks are generated for schema: “null_database”
2024-01-03 13:24:53 [ERROR] System exit 1

当前报error是为了提醒客户没有导出任务,所以最后失败退出是合理的。如果希望导出空数据库不报错的话,可以帮提个issue,我们会进行评估的。https://github.com/oceanbase/oceanbase/issues

1 个赞