Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Lily2025 opened this issue Dec 16, 2024 · 2 comments · Fixed by #58323
Assignees
Labels
affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. severity/critical type/bug The issue is confirmed as a bug.

Comments

@Lily2025
Copy link

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

@Lily2025 Lily2025 added the type/bug The issue is confirmed as a bug. label Dec 16, 2024
@Lily2025 Lily2025 changed the title import failed when run some fault injection import failed when [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\"'"]“ run some fault injection Dec 16, 2024
@Lily2025 Lily2025 changed the title import failed when [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\"'"]“ run some fault injection 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 Dec 16, 2024
@Lily2025
Copy link
Author

/assign lance6716

@Lily2025
Copy link
Author

/severity critical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. severity/critical type/bug The issue is confirmed as a bug.
Projects
None yet
3 participants