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

*: Add backfill job related tables and operations #38978

Closed

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Nov 8, 2022

What problem does this PR solve?

Issue Number: close #37122

Problem Summary:

What is changed and how it works?

  • Add related tables and init these tables
  • Add the basic functions to process the two tables
  • Add related UTs

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

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. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 8, 2022
@zimulala zimulala removed the request for review from tangenta November 8, 2022 11:34
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 9, 2022
@zimulala zimulala force-pushed the zimuxia/sql branch 2 times, most recently from a1539e4 to bed74c1 Compare November 9, 2022 08:02
ddl/backfilling.go Outdated Show resolved Hide resolved
)

// enableDistReorg means whether to enable dist reorg. The default is enable.
// TODO: control the behavior
var enableDistReorg = atomicutil.NewBool(false)
Copy link
Member

Choose a reason for hiding this comment

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

We have feature tag in the sessionctx/variable/featuretag. We can test feature when it enables and disables by controlling the feature tag. I think it may be useful for you.

}

// AbbrStr returns the BackfillJob's info without the Mate info.
func (bj *BackfillJob) AbbrStr() string {
Copy link
Member

Choose a reason for hiding this comment

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

directly name String or Str

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this function only shows some ID related info, we don't use String here (and we're not sure if we need this function later).

)

// enableDistReorg means whether to enable dist reorg. The default is enable.
// TODO: control the behavior
var enableDistReorg = atomicutil.NewBool(false)
Copy link
Collaborator

@Benjamin2037 Benjamin2037 Nov 14, 2022

Choose a reason for hiding this comment

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

The default is enable, I think this should be ture

session/session.go Outdated Show resolved Hide resolved
@zimulala
Copy link
Contributor Author

zimulala commented Dec 5, 2022

Move it to master: #39616

@zimulala zimulala closed this Dec 5, 2022
@zimulala zimulala deleted the zimuxia/sql branch May 26, 2023 05:39
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.

4 participants