Skip to content

engine: only override write stall configurations if unspecified#12127

Merged
ti-chi-bot merged 9 commits intotikv:masterfrom
tabokie:better-override
Jun 2, 2022
Merged

engine: only override write stall configurations if unspecified#12127
ti-chi-bot merged 9 commits intotikv:masterfrom
tabokie:better-override

Conversation

@tabokie
Copy link
Member

@tabokie tabokie commented Mar 8, 2022

Signed-off-by: tabokie xy.tao@outlook.com

What is changed and how it works?

Issue Number: Ref #11424

What's Changed:

Follow up on #11840.

This is handy if we want to make RocksDB compaction a bit faster without triggering flow control.

Related changes

  • Doc change

Check List

Tests

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

Release note

None

Signed-off-by: tabokie <xy.tao@outlook.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Mar 8, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • BusyJay
  • Connor1996

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.

Details

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 8, 2022
Signed-off-by: tabokie <xy.tao@outlook.com>
@ti-chi-bot ti-chi-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 8, 2022
@tabokie tabokie requested review from BusyJay and Connor1996 March 8, 2022 16:31
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 9, 2022
tabokie added 2 commits March 9, 2022 20:42
…rride

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@ti-chi-bot ti-chi-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 9, 2022
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 10, 2022
tabokie added 2 commits March 24, 2022 15:41
Signed-off-by: tabokie <xy.tao@outlook.com>
…rride

Signed-off-by: tabokie <xy.tao@outlook.com>
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 24, 2022
@tabokie tabokie requested a review from Connor1996 March 24, 2022 07:43
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@tabokie tabokie requested a review from Connor1996 March 25, 2022 03:14
Some($cfg.l0_files_threshold as i32);
}
if let Some(v) = &mut $cf_opts.level0_stop_writes_trigger {
if $cfg.enable && *v > $cfg.l0_files_threshold as i32 {
Copy link
Member

Choose a reason for hiding this comment

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

no need to check stop_writes_trigger

Copy link
Member Author

Choose a reason for hiding this comment

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

Why, I remember stop is allowed to be smaller than slow, in which case RocksDB will modify slow to match stop.

pub disable_write_stall: bool,
pub soft_pending_compaction_bytes_limit: ReadableSize,
pub hard_pending_compaction_bytes_limit: ReadableSize,
pub soft_pending_compaction_bytes_limit: Option<ReadableSize>,
Copy link
Member

Choose a reason for hiding this comment

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

what's the output of Option after serialization

Copy link
Member Author

Choose a reason for hiding this comment

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

None will not be serialized, Some is serialized in the same way as normal fields.

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 8, 2022
@tabokie tabokie added the needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. label Jun 2, 2022
@tabokie
Copy link
Member Author

tabokie commented Jun 2, 2022

/merge

@ti-chi-bot
Copy link
Member

@tabokie: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Details

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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: ca7199a

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 2, 2022
@ti-chi-bot ti-chi-bot merged commit 2a508a5 into tikv:master Jun 2, 2022
ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jun 2, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.2 in PR #12733

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jun 2, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.3 in PR #12734

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jun 2, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-5.4 in PR #12735

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jun 2, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-6.0 in PR #12736

ti-srebot pushed a commit to ti-srebot/tikv that referenced this pull request Jun 2, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-6.1 in PR #12737

@tabokie tabokie deleted the better-override branch June 2, 2022 02:45
tabokie added a commit to tabokie/tikv that referenced this pull request Jun 2, 2022
ti-chi-bot added a commit that referenced this pull request Jun 6, 2022
…) (#12752)

ref #11424, ref #12127, ref #12133

Signed-off-by: tabokie <xy.tao@outlook.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ti-chi-bot pushed a commit that referenced this pull request Sep 15, 2022
ref #11424, ref #12127, ref #12133, close #13467

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: Xinye Tao <xy.tao@outlook.com>

Co-authored-by: Xinye Tao <xy.tao@outlook.com>
ti-chi-bot pushed a commit that referenced this pull request Sep 15, 2022
…) (#12735)

ref #11424, ref #11840, ref #12127, close #13467

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: Xinye Tao <xy.tao@outlook.com>

Co-authored-by: Xinye Tao <xy.tao@outlook.com>
ti-chi-bot pushed a commit that referenced this pull request Oct 10, 2022
…) (#12737)

ref #11424, ref #11840, ref #12127, close #13467

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Xinye Tao <xy.tao@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-cherry-pick-release-5.2 Type: Need cherry pick to release-5.2 needs-cherry-pick-release-5.3 Type: Need cherry pick to release-5.3 needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. 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. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants