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

parser/executor: admin show/set bdr role #48504

Merged
merged 14 commits into from
Nov 16, 2023
Merged

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Nov 10, 2023

What problem does this PR solve?

Issue Number: ref #48519

Problem Summary:

What is changed and how it works?

  • admin show bdr role
  • admin set bdr role none/primary/secondary/local_only

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

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

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

None

Copy link

ti-chi-bot bot commented Nov 10, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Nov 10, 2023
Copy link

tiprow bot commented Nov 10, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 10, 2023
@okJiang okJiang changed the title [wip]parser/executor: bdr role parser/executor: admin show/set bdr role Nov 10, 2023
@okJiang okJiang marked this pull request as ready for review November 10, 2023 07:45
@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 Nov 10, 2023
@okJiang
Copy link
Member Author

okJiang commented Nov 10, 2023

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test Indicates a PR is ready to be tested. label Nov 10, 2023
Co-authored-by: tangenta <tangenta@126.com>
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #48504 (172a4d4) into master (15f7b6e) will increase coverage by 1.7995%.
Report is 4 commits behind head on master.
The diff coverage is 82.5396%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #48504        +/-   ##
================================================
+ Coverage   71.2233%   73.0229%   +1.7995%     
================================================
  Files          1360       1384        +24     
  Lines        403758     412906      +9148     
================================================
+ Hits         287570     301516     +13946     
+ Misses        96260      92599      -3661     
+ Partials      19928      18791      -1137     
Flag Coverage Δ
integration 43.8184% <81.6326%> (?)
unit 71.5983% <28.5714%> (+0.3749%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 53.9874% <ø> (ø)
parser ∅ <ø> (∅)
br 48.9001% <ø> (-4.1622%) ⬇️

@okJiang
Copy link
Member Author

okJiang commented Nov 13, 2023

ping @tangenta @GMHDBJD

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 14, 2023
@okJiang
Copy link
Member Author

okJiang commented Nov 14, 2023

/retest

1 similar comment
@okJiang
Copy link
Member Author

okJiang commented Nov 14, 2023

/retest

@@ -6525,6 +6529,7 @@ UnReservedKeyword:
| "AFTER"
| "ALWAYS"
| "AVG"
| "BDR"
Copy link
Contributor

Choose a reason for hiding this comment

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

more indent?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in bd24d72

@@ -6582,6 +6587,7 @@ UnReservedKeyword:
| "INSERT_METHOD"
| "LESS"
| "LOCAL"
| "LOCAL_ONLY"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@okJiang
Copy link
Member Author

okJiang commented Nov 16, 2023

/test tiprow_fast_test

Copy link

ti-chi-bot bot commented Nov 16, 2023

@okJiang: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test build
  • /test check-dev
  • /test check-dev2
  • /test mysql-test
  • /test unit-test

The following commands are available to trigger optional jobs:

  • /test canary-notify-when-compatibility-sections-changed
  • /test pingcap/tidb/canary_ghpr_unit_test
  • /test pull-br-integration-test
  • /test pull-common-test
  • /test pull-e2e-test
  • /test pull-integration-common-test
  • /test pull-integration-copr-test
  • /test pull-integration-ddl-test
  • /test pull-integration-jdbc-test
  • /test pull-integration-mysql-test
  • /test pull-integration-nodejs-test
  • /test pull-mysql-client-test
  • /test pull-sqllogic-test
  • /test pull-tiflash-test

Use /test all to run the following jobs that were automatically triggered:

  • pingcap/tidb/canary_ghpr_unit_test
  • pingcap/tidb/ghpr_build
  • pingcap/tidb/ghpr_check
  • pingcap/tidb/ghpr_check2
  • pingcap/tidb/ghpr_mysql_test
  • pingcap/tidb/ghpr_unit_test

In response to this:

/test tiprow_fast_test

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.

Copy link
Contributor

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 16, 2023
Copy link

ti-chi-bot bot commented Nov 16, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-11-14 06:34:02.629342044 +0000 UTC m=+4144440.216452189: ☑️ agreed by tangenta.
  • 2023-11-16 08:07:43.861339548 +0000 UTC m=+4322861.448449693: ☑️ agreed by GMHDBJD.

@okJiang
Copy link
Member Author

okJiang commented Nov 16, 2023

/retest

@easonn7
Copy link

easonn7 commented Nov 16, 2023

/approve

Copy link

ti-chi-bot bot commented Nov 16, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: easonn7, GMHDBJD, tangenta

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:

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

@ti-chi-bot ti-chi-bot bot added the approved label Nov 16, 2023
@okJiang
Copy link
Member Author

okJiang commented Nov 16, 2023

/retest

@ti-chi-bot ti-chi-bot bot merged commit bee2876 into pingcap:master Nov 16, 2023
16 checks passed
@okJiang okJiang deleted the bdr-role branch November 21, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test Indicates a PR is ready to be tested. 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.

5 participants