Raft: Fix coprocessor ignore new added RegionReadStatus thus cause inconsistent result#10543
Conversation
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
/hold |
| case RegionException::RegionReadStatus::STALE_COMMAND: | ||
| case RegionException::RegionReadStatus::STORE_NOT_MATCH: |
There was a problem hiding this comment.
The main changes is adding handling these two enum values
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CalvinNeo, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
/cherry-pick release-nextgen-20251011 |
|
@JaySon-Huang: new pull request created to branch DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
…consistent result (#10543) (#10545) close #10510 * Handling new added RegionReadStatus enum values for error response of coprocessor * Do not set the `default` branch for switch (e.status) so that the compiler will throw an error if there is not covered new enum values Signed-off-by: JaySon-Huang <tshent@qq.com> Co-authored-by: JaySon-Huang <tshent@qq.com>
…consistent result (#10543) (#10544) close #10510 * Handling new added RegionReadStatus enum values for error response of coprocessor * Do not set the `default` branch for switch (e.status) so that the compiler will throw an error if there is not covered new enum values Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: JaySon-Huang <tshent@qq.com> Co-authored-by: JaySon <tshent@qq.com> Co-authored-by: JaySon-Huang <tshent@qq.com>

What problem does this PR solve?
Issue Number: close #10510
Problem Summary:
From the failure test logging, we can see that all of those failure read request meet an
RegionException: ... message: Region error STALE_COMMAND(). #10494 adds new enum values includingSTALE_COMMANDinRegionException:: RegionReadStatus.https://github.com/JaySon-Huang/tiflash/blob/eb407fdfdeb9865794868009245bb0e1adb20c0e/dbms/src/Storages/KVStore/Read/RegionException.h#L42-L44
endless-htap-consistency-chaos-tps-7973167-1-292
endless-htap-consistency-chaos-tps-7972869-1-937
endless-htap-consistency-chaos-tps-7911630-1-667
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note