tencent cloud

Data Transfer Service

Shard Key Check

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-02-24 16:15:00

Check Details

Check requirement: When the target is a sharded instance, the shard key can be preset on the target side. If the shard key of the target table is not consistent with that of the source table, a warning will be sent. The warning does not block the continuation of the task but may impact the business. Users should assess the impact and decide whether to ignore the warning.
Business impact: In scenarios where shard keys are inconsistent, the synchronization task may fail.

Fixing Method

If the shard key is preset for the target table, see the following command to perform shard operations on the source table.
sh.shardCollection("<database>.<collection>", { <shard key> : "hashed" } , false, {numInitialChunks: Number of preset chunks})
Execute the check task again.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백