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

doc: add batch coprocessor rfc #39362

Merged
merged 7 commits into from
Jan 31, 2024
Merged

Conversation

cfzjywxk
Copy link
Contributor

What problem does this PR solve?

Issue Number: ref #39361

Problem Summary:
The design docuement.

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Documentation

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 24, 2022
Usually, the IndexLookUp executor may have an index worker which tries to read index keys and handles
according to the index filter conditions. Each time it fetches enough handle data, it would create a
coprocessor table task and send it to the table workers. The handle data size limit could be configured
by the [tidb_index_lookup_size](https://docs.pingcap.com/zh/tidb/dev/system-variables#tidb_index_lookup_size)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by the [tidb_index_lookup_size](https://docs.pingcap.com/zh/tidb/dev/system-variables#tidb_index_lookup_size)
system variable.

When the table worker gets a coprocessor task, it would split the handle ranges according to the region
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When the table worker gets a coprocessor task, it would split the handle ranges according to th�e region
When the table worker gets a coprocessor task, it would split the handle ranges according to the region

there are region errors or other errors processing batch tasks, rescheduling the cop tasks or
reporting errors to the upper layer.

Note if the `keepOrder` is quired, the partial query result could not be sent back until all the reads
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"required"?

docs/design/2022-11-23-batch-cop.md Outdated Show resolved Hide resolved

// Store the batched tasks belonging to other regions.
repeated region_tasks = 11;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repeated type is missing.

message Response {
// The returned region error handling batch tasks.
repeated errorpb.Error region_errors = 13;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to collect errors with region id or task info. e.g., 100 region tasks request got 2 errors(the first and last), we need to tell TiDB which tasks need to be retried.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Merging #39362 (b732365) into master (d62ba73) will increase coverage by 2.8814%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

❗ Current head b732365 differs from pull request most recent head d4cb1f3. Consider uploading reports for the commit d4cb1f3 to get more accurate results

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #39362        +/-   ##
================================================
+ Coverage   70.5286%   73.4101%   +2.8814%     
================================================
  Files          1465       1056       -409     
  Lines        433686     335891     -97795     
================================================
- Hits         305873     246578     -59295     
+ Misses       108604      73518     -35086     
+ Partials      19209      15795      -3414     

Copy link

ti-chi-bot bot commented Jan 31, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-31 06:21:25.567833873 +0000 UTC m=+1546527.132131577: ☑️ agreed by zyguan.
  • 2024-01-31 07:39:32.269276707 +0000 UTC m=+1551213.833574398: ☑️ agreed by you06.

Copy link

tiprow bot commented Jan 31, 2024

@cfzjywxk: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
tiprow_fast_test b732365 link true /test tiprow_fast_test

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@cfzjywxk
Copy link
Contributor Author

/merge

Copy link

ti-chi-bot bot commented Jan 31, 2024

@cfzjywxk: We have migrated to builtin LGTM and approve plugins for reviewing.

Please use /approve when you want approve this pull request.

The changes announcement: LGTM plugin changes

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.

@cfzjywxk
Copy link
Contributor Author

/approve

Copy link

ti-chi-bot bot commented Jan 31, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfzjywxk, you06, zyguan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [cfzjywxk,you06,zyguan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cfzjywxk
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Jan 31, 2024

@cfzjywxk: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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 kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot merged commit 732fa8c into pingcap:master Jan 31, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved component/docs lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants