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

*: Make tiflash compatible with the cse branch #9765

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented Jan 6, 2025

What problem does this PR solve?

Issue Number: close #9767

Problem Summary:

What is changed and how it works?


The following adoption of cse only enable when SERVERLESS_PROXY = 1 is defined

  • Length of short value in lock CF encode as varInt instead of u8
  • Blocklist feature
    • keyspace blocklist
    • region_id blocklist
    • store_id blocklist under disagg arch
  • mtls
  • A HTTP API for Acquiring the all the region ids created in this TiFlash node with given keyspace id
  • File-base large txn
  • Special threshold on parallel prehandle

Check List

Tests

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

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. do-not-merge/needs-linked-issue labels Jan 6, 2025
Signed-off-by: JaySon-Huang <[email protected]>
Signed-off-by: JaySon-Huang <[email protected]>
Signed-off-by: JaySon-Huang <[email protected]>
@JaySon-Huang JaySon-Huang changed the title [WIP] *: Make tiflash compatible with the cse branch *: Make tiflash compatible with the cse branch Jan 8, 2025
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 8, 2025
Copy link
Member

@yongman yongman left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

ti-chi-bot bot commented Jan 8, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yongman
Once this PR has been reviewed and has the lgtm label, please ask for approval from jayson-huang, ensuring that each of them provides their approval before proceeding. For more information see the Code Review Process.

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

Needs approval from an approver in each of these files:

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

Copy link
Contributor

ti-chi-bot bot commented Jan 8, 2025

@yongman: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

LGTM

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-sigs/prow repository.

Poco::Net::Context::VerificationMode::VERIFY_STRICT
#else
// mtls: metrics server allows anonymous pullers @iosmanthus
Poco::Net::Context::VerificationMode::VERIFY_RELAXED
Copy link
Member

Choose a reason for hiding this comment

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

Where does this line come from? Can not find on either tiflash master or cse

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"Failed to get lock by key {}, region_id={}",
tikv_key.toDebugString(),
region_id);
LOG_DEBUG(Logger::get(), "Failed to get lock by key {}, region_id={}", tikv_key.toDebugString(), region_id);
Copy link
Member

Choose a reason for hiding this comment

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

Why change this to DEBUG?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it has been changed to debug level in the cse branch because there could be lots of logging after file base large txn

if (version <= cur_version)
{
return false;
}
#else
if (version == cur_version)
Copy link
Member

@CalvinNeo CalvinNeo Jan 14, 2025

Choose a reason for hiding this comment

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

        // if the `version` is less than `cur_version`, it means that the schema version in TiKV has been rolled back by restore.
        // We should sync the schema again.

Why won't this happen in TiFlash master?

@CalvinNeo
Copy link
Member

/cc @guo-shaoge Could you please also review the blocklist part?

Comment on lines 305 to 314
{
#if SERVERLESS_PROXY == 0
return getMaxPrehandleSubtaskSize();
#else
auto max_subtask_size = getMaxPrehandleSubtaskSize();
// In serverless mode, IO takes more part in decoding stage, so we can increase parallel limit.
// In real test, the prehandling speed decreases if we use higher concurrency.
return std::min(4, total_concurrency);
#endif
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"Failed to get lock by key {}, region_id={}",
tikv_key.toDebugString(),
region_id);
LOG_DEBUG(Logger::get(), "Failed to get lock by key {}, region_id={}", tikv_key.toDebugString(), region_id);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it has been changed to debug level in the cse branch because there could be lots of logging after file base large txn

Poco::Net::Context::VerificationMode::VERIFY_STRICT
#else
// mtls: metrics server allows anonymous pullers @iosmanthus
Poco::Net::Context::VerificationMode::VERIFY_RELAXED
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

ti-chi-bot bot commented Jan 14, 2025

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

Test name Commit Details Required Rerun command
pull-unit-test 3964824 link true /test pull-unit-test
pull-integration-test 3964824 link true /test pull-integration-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-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make tiflash compatible with the cse branch
3 participants