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

* : Remove binlog related codes #55955

Merged
merged 19 commits into from
Sep 20, 2024

Conversation

Benjamin2037
Copy link
Collaborator

@Benjamin2037 Benjamin2037 commented Sep 9, 2024

What problem does this PR solve?

Remove TiDB-binlog related code.

Issue Number: close #55949

Problem Summary:

What changed and how does it work?

Check List

Tests

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

    Only remove code.

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.

TiDB-Binlog related code has been deleted, since TiDB-Binlog has been deprecated.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 9, 2024
Copy link

tiprow bot commented Sep 9, 2024

Hi @Benjamin2037. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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.

@Benjamin2037 Benjamin2037 changed the title * : Remove binlog related codes. * : Remove binlog related codes(WIP) Sep 9, 2024
@ti-chi-bot ti-chi-bot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Sep 9, 2024
@lance6716

This comment was marked as resolved.

@Benjamin2037
Copy link
Collaborator Author

/retest

Copy link

tiprow bot commented Sep 9, 2024

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

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.8869%. Comparing base (66d8cdc) to head (6413d19).
Report is 5 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #55955         +/-   ##
=================================================
- Coverage   72.9612%   56.8869%   -16.0744%     
=================================================
  Files          1611       1758        +147     
  Lines        447632     630345     +182713     
=================================================
+ Hits         326598     358584      +31986     
- Misses       101001     247167     +146166     
- Partials      20033      24594       +4561     
Flag Coverage Δ
integration 39.4316% <100.0000%> (?)
unit 72.5824% <100.0000%> (+0.5420%) ⬆️

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

Components Coverage Δ
dumpling 52.9567% <ø> (ø)
parser ∅ <ø> (∅)
br 63.2709% <ø> (+17.3947%) ⬆️

@Benjamin2037
Copy link
Collaborator Author

/retest

Copy link

tiprow bot commented Sep 11, 2024

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

@Benjamin2037 Benjamin2037 changed the title * : Remove binlog related codes(WIP) * : Remove binlog related codes Sep 11, 2024
@Benjamin2037
Copy link
Collaborator Author

Benjamin2037 commented Sep 11, 2024

It seems that we also need a PR to modify some mysql test cases. Form mysql test:

time="2024-09-11T10:10:03+08:00" level=error msg="run test [index_merge_delete] err: sql:SET @save_log_bin= @@sql_log_bin;: run \"SET @save_log_bin= @@sql_log_bin;\" at line 219 err Error 1193 (HY000): Unknown system variable 'sql_log_bin'"

https://github.com/PingCAP-QE/tidb-test/pull/2385 This one is the pr for mysql-test.

Copy link
Contributor

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

rest lgtm

@@ -3467,10 +3465,6 @@ const (
InnodbFastShutdown = "innodb_fast_shutdown"
// InnodbLockWaitTimeout is the name for 'innodb_lock_wait_timeout' system variable.
InnodbLockWaitTimeout = "innodb_lock_wait_timeout"
// SQLLogBin is the name for 'sql_log_bin' system variable.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe involve PM to decide if we should keep some level of compatibility with MySQL.

For sql_log_bin, we can't implement it in TiDB, so we may allow read it and forbid writing to it. For log_bin, seems this is a read-only variable in MySQL, we can also let TiDB always return OFF for it.

https://dev.mysql.com/doc/refman/8.4/en/replication-options-binary-log.html#sysvar_sql_log_bin

https://dev.mysql.com/doc/refman/8.4/en/replication-options-binary-log.html#sysvar_log_bin

Choose a reason for hiding this comment

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

TiDB has discarded binlog, which makes it inherently incompatible with MySQL in this aspect. Therefore, keeping the binlog-related parameters is also pointless. It is recommended to remove them as well.

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 11, 2024
Copy link

ti-chi-bot bot commented Sep 11, 2024

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

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

@Benjamin2037
Copy link
Collaborator Author

/retest

Copy link

tiprow bot commented Sep 11, 2024

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

@Benjamin2037 Benjamin2037 force-pushed the remove-binlog-codes branch 2 times, most recently from 981989a to 70039bb Compare September 11, 2024 08:15
@lance6716
Copy link
Contributor

/retest

Copy link

tiprow bot commented Sep 11, 2024

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

@Benjamin2037
Copy link
Collaborator Author

/cc ailinkid, tangenta, yudongusa

@gengliqi
Copy link
Contributor

When can this PR be merged? I want to update tipb but found that the compiler will report an error because binlog part in tipb has been removed.

Copy link

@yudongusa yudongusa left a comment

Choose a reason for hiding this comment

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

LGTM after confirmation with the team on the potential business impact mitigation.

@ti-chi-bot ti-chi-bot bot added the approved label Sep 19, 2024
Copy link

ti-chi-bot bot commented Sep 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Frank945946, lance6716, tangenta, winoros, yudongusa

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

@lance6716

This comment was marked as resolved.

@lance6716
Copy link
Contributor

/retest

Copy link

tiprow bot commented Sep 20, 2024

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

@ti-chi-bot ti-chi-bot bot merged commit 67bee7c into pingcap:master Sep 20, 2024
23 checks passed
@Benjamin2037 Benjamin2037 deleted the remove-binlog-codes branch September 20, 2024 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/planner SIG: Planner 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.

Remove TiDB-Binlog codes.
8 participants