你好,没有看到相关的日志信息有提示为什么没有生效噢:
[kevinsna@tidb01 tmp]$ tiup dumpling -udumpusr -p’123456’ -h 192.168.90.30 -P 4000 --filetype sql -B test -t 8 -r 1 -F256MiB -o /tmp/test
Starting component dumpling: /home/kevinsna/.tiup/components/dumpling/v8.1.0/dumpling -udumpusr -p123456 -h 192.168.90.30 -P 4000 --filetype sql -B test -t 8 -r 1 -F256MiB -o /tmp/test
Release version: v8.1.0
Git commit hash: 945d07c5d5c7a1ae212f6013adfb187f2de24b23
Git branch: HEAD
Build timestamp: 2024-05-21 03:51:57Z
Go version: go version go1.21.10 linux/amd64
[2024/11/28 14:13:12.443 +08:00] [INFO] [versions.go:54] [“Welcome to dumpling”] [“Release Version”=v8.1.0] [“Git Commit Hash”=945d07c5d5c7a1ae212f6013adfb187f2de24b23] [“Git Branch”=HEAD] [“Build timestamp”=“2024-05-21 03:51:57”] [“Go Version”=“go version go1.21.10 linux/amd64”]
[2024/11/28 14:13:12.450 +08:00] [INFO] [version.go:440] [“detect server version”] [type=TiDB] [version=8.1.0]
[2024/11/28 14:13:12.504 +08:00] [INFO] [pd_service_discovery.go:991] [“[pd] update member urls”] [old-urls=“[http://192.168.90.32:2379,http://192.168.90.31:2379,http://192.168.90.30:2379]”] [new-urls=“[http://192.168.90.30:2379,http://192.168.90.31:2379,http://192.168.90.32:2379]”]
[2024/11/28 14:13:12.505 +08:00] [INFO] [pd_service_discovery.go:1016] [“[pd] switch leader”] [new-leader=http://192.168.90.30:2379] [old-leader=]
[2024/11/28 14:13:12.505 +08:00] [INFO] [pd_service_discovery.go:498] [“[pd] init cluster id”] [cluster-id=7388826782122131320]
[2024/11/28 14:13:12.506 +08:00] [INFO] [client.go:613] [“[pd] changing service mode”] [old-mode=UNKNOWN_SVC_MODE] [new-mode=PD_SVC_MODE]
[2024/11/28 14:13:12.506 +08:00] [INFO] [tso_client.go:293] [“[tso] switch dc tso global allocator serving url”] [dc-location=global] [new-url=http://192.168.90.30:2379]
[2024/11/28 14:13:12.508 +08:00] [INFO] [client.go:619] [“[pd] service mode changed”] [old-mode=UNKNOWN_SVC_MODE] [new-mode=PD_SVC_MODE]
[2024/11/28 14:13:12.509 +08:00] [INFO] [tso_dispatcher.go:119] [“[tso] start tso deadline watcher”] [dc-location=global]
[2024/11/28 14:13:12.510 +08:00] [INFO] [tso_dispatcher.go:168] [“[tso] tso dispatcher created”] [dc-location=global]
[2024/11/28 14:13:12.510 +08:00] [INFO] [tso_dispatcher.go:336] [“[tso] start tso connection contexts updater”] [dc-location=global]
[2024/11/28 14:13:12.510 +08:00] [INFO] [tso_client.go:130] [“[tso] start tso dispatcher check loop”]
[2024/11/28 14:13:12.515 +08:00] [INFO] [dump.go:1518] [“generate dumpling gc safePoint id”] [id=dumpling_1732774392515062409]
[2024/11/28 14:13:12.588 +08:00] [INFO] [dump.go:151] [“begin to run Dump”] [conf=“{"s3":{"endpoint":"","region":"","storage-class":"","sse":"","sse-kms-key-id":"","acl":"","access-key":"","secret-access-key":"","session-token":"","provider":"","force-path-style":true,"use-accelerate-endpoint":false,"role-arn":"","external-id":"","object-lock-enabled":false},"gcs":{"endpoint":"","storage-class":"","predefined-acl":"","credentials-file":""},"azblob":{"endpoint":"","account-name":"","account-key":"","access-tier":"","sas-token":"","encryption-scope":"","encryption-key":""},"SpecifiedTables":false,"AllowCleartextPasswords":false,"SortByPk":true,"NoViews":false,"NoSequences":false,"NoHeader":false,"NoSchemas":false,"NoData":false,"CompleteInsert":false,"TransactionalConsistency":true,"EscapeBackslash":true,"DumpEmptyDatakevinsna":true,"PosAfterConnect":false,"CompressType":0,"Host":"192.168.90.30","Port":4000,"Threads":8,"User":"dumpusr","Security":{"CAPath":"","CertPath":"","KeyPath":""},"LogLevel":"info","LogFile":"","LogFormat":"text","OutputDirPath":"/tmp/test","StatusAddr":":8281","Snapshot":"454236410348830724","Consistency":"snapshot","CsvNullValue":"\\N","SQL":"","CsvSeparator":",","CsvDelimiter":"\"","CsvLineTerminator":"\r\n","Datakevinsnas":["test"],"Where":"","FileType":"sql","ServerInfo":{"ServerType":3,"ServerVersion":"8.1.0","HasTiKV":true},"Rows":1,"ReadTimeout":900000000000,"TiDBMemQuotaQuery":0,"FileSize":268435456,"StatementSize":1000000,"SessionParams":{"tidb_snapshot":"454236410348830724"},"Tables":{},"CollationCompatible":"loose","CsvOutputDialect":0,"IOTotalBytes":null,"Net":""}”]
[2024/11/28 14:13:12.782 +08:00] [INFO] [writer.go:272] [“no data written in table chunk”] [datakevinsna=test] [table=t] [chunkIdx=0]
[2024/11/28 14:13:12.808 +08:00] [INFO] [collector.go:264] [“backup success summary”] [total-ranges=6] [ranges-succeed=6] [ranges-failed=0] [total-take=60.624993ms] [total-kv-size=134B] [average-speed=2.21kB/s] [total-rows=5]
[2024/11/28 14:13:12.813 +08:00] [INFO] [main.go:82] [“dump data successfully, dumpling will exit now”]
[kevinsna@tidb01 tmp]$ cat /tmp/test/test.t.0000000010000.sql
/!40014 SET FOREIGN_KEY_CHECKS=0/;
/!40101 SET NAMES binary/;
INSERT INTO t
VALUES
(1,‘a’),
(2,‘b’),
(3,‘c’),
(4,‘d’),
(5,‘e’);