Skip to content

import failed with [error="request pd http api failed with ”status: '400 Bad Request', body: '\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\"'"]“ when run some fault injection #58267

@Lily2025

Description

@Lily2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

1、run import into
2、run some fault injection

2. What did you expect to see? (Required)

import can succeed

3. What did you see instead (Required)

import failed
[2024/12/15 12:38:54.338 +08:00] [ERROR] [client.go:252] ["[pd] request failed with a non-200 status"] [caller-id=pd-http-client] [name=SetRegionLabelRule] [uri=/pd/api/v1/config/region-label/rule] [method=POST] [target-url=] [source=lightning] [url=http://tc-pd-2.tc-pd-peer.endless-ha-test-import-into-tps-7698312-1-488.svc:2379/pd/api/v1/config/region-label/rule] [status="400 Bad Request"] [body="\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\""] [2024/12/15 12:38:54.359 +08:00] [ERROR] [task_executor.go:401] ["run subtask failed"] [type=ImportInto] [task-id=120014] [step=write&ingest] [subtask-id=120001] [kv-group=1] [takeTime=26.939256ms] [error="request pd http api failed with status: '400 Bad Request', body: '\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\"'"] [2024/12/15 12:38:54.359 +08:00] [ERROR] [task_executor.go:541] [onError] [task-id=120014] [task-type=ImportInto] [error="request pd http api failed with status: '400 Bad Request', body: '\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\"'"] [stack="github.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).onError\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:541\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).runSubtask\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:420\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).runStep\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:376\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).RunStep\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:258\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*BaseTaskExecutor).Run\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/task_executor.go:238\ngithub.com/pingcap/tidb/pkg/disttask/framework/taskexecutor.(*Manager).startTaskExecutor.func1\n\t/workspace/source/tidb/pkg/disttask/framework/taskexecutor/manager.go:337\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupWrapper).RunWithLog.func1\n\t/workspace/source/tidb/pkg/util/wait_group_wrapper.go:171"] [2024/12/15 12:38:54.359 +08:00] [ERROR] [task_executor.go:547] ["taskExecutor met first error"] [task-id=120014] [task-type=ImportInto] [error="request pd http api failed with status: '400 Bad Request', body: '\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\"'"] [2024/12/15 12:38:54.359 +08:00] [WARN] [task_executor.go:632] ["subtask failed"] [task-id=120014] [task-type=ImportInto] [error="request pd http api failed with status: '400 Bad Request', body: '\"[PD:region:ErrRegionRuleContent]invalid region rule content, endKey should be greater than startKey\"'"] [2024/12/15 12:38:54.359 +08:00] [INFO] [tso_dispatcher.go:182] ["exit tso requests cancel loop"]

4. What is your TiDB version? (Required)

./tidb-server -V
Release Version: v8.1.2
Edition: Community
Git Commit Hash: 9ffb182
Git Branch: HEAD
UTC Build Time: 2024-12-13 14:22:16
GoVersion: go1.21.13
Race Enabled: false
Check Table Before Drop: false
Store: unistore

Metadata

Metadata

Assignees

Labels

affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.severity/criticaltype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions