-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
*: track cluster-level analyze jobs and make it persistent #32215
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
fbd4ce3
add mysql.analyze_jobs
xuyifangreeneyes 851824c
updte table
xuyifangreeneyes dc571af
Merge branch 'master' into analyze-status
xuyifangreeneyes 284f841
use mysql.analyze_jobs to implement show analyze status
xuyifangreeneyes c3fa553
add tidb address and proc id in analyze_jobs
xuyifangreeneyes fe5f331
Merge branch 'master' into analyze-status
xuyifangreeneyes d584c4b
fix last_insert_id
xuyifangreeneyes c8df42a
Merge branch 'analyze-status' of https://github.com/xuyifangreeneyes/…
xuyifangreeneyes a35e874
update job_info; delete outdated analyze jobs
xuyifangreeneyes 521f452
handle error in gcAnalyzeHistory
xuyifangreeneyes a8a1f36
upd job info
xuyifangreeneyes ffe91b1
format import
xuyifangreeneyes b7129a3
upd
xuyifangreeneyes fb90284
upd
xuyifangreeneyes 0404c48
Merge branch 'master' into analyze-status
xuyifangreeneyes fcb8c84
resolve conflict
xuyifangreeneyes 27bdbce
resolve conflict
xuyifangreeneyes 474b397
Merge branch 'master' into analyze-status
xuyifangreeneyes 2ec2764
address comment
xuyifangreeneyes ad032d2
fix build
xuyifangreeneyes dfcd4a4
fix job_info
xuyifangreeneyes d2c15fd
fix
xuyifangreeneyes d2067b6
update processed_rows when finish analyze job
xuyifangreeneyes 42f4c1b
upd
xuyifangreeneyes 1e9250c
Merge branch 'master' into analyze-status
qw4990 41fee0d
avoid move function position
xuyifangreeneyes af16ac2
Merge branch 'analyze-status' of https://github.com/xuyifangreeneyes/…
xuyifangreeneyes e660844
Merge branch 'master' into analyze-status
xuyifangreeneyes 15906fc
refine
xuyifangreeneyes 6ef6ffe
Merge branch 'analyze-status' of https://github.com/xuyifangreeneyes/…
xuyifangreeneyes fc59504
add test
xuyifangreeneyes 61af62b
refine test
xuyifangreeneyes 331d7c1
add test
xuyifangreeneyes f9dc28b
refine test
xuyifangreeneyes 8654b93
fmt
xuyifangreeneyes db5edd6
Merge branch 'master' into analyze-status
xuyifangreeneyes f646145
fix ut
xuyifangreeneyes 390dc02
fix ut
xuyifangreeneyes 809a203
fix ut
xuyifangreeneyes dcbe484
resolve conflict
xuyifangreeneyes 60b2b7f
address comment
xuyifangreeneyes f83b735
add some comments
xuyifangreeneyes 184b1e7
rename process to progress
xuyifangreeneyes ae1ec41
fix
xuyifangreeneyes 2bb9529
resolve conflict
xuyifangreeneyes 0b063fe
set process_id to null when the analyze job is finished/failed
xuyifangreeneyes 4c538f6
fix ut
xuyifangreeneyes 925574c
add test for checking jobInfo of show analyze status and tiny fix
xuyifangreeneyes 70f195f
resolve conflict
xuyifangreeneyes dbd5b40
Merge branch 'master' into analyze-status
ti-chi-bot 694be1e
Merge branch 'master' into analyze-status
ti-chi-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will this happen? the last updating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delta == 0
means thatjob.Delta.Count
doesn't reach threshold so we don't need to dump it. I forget to handle the last updating. Fix it by updateprocessed_rows
when callingfinishAnalyzeJob
.