-
Notifications
You must be signed in to change notification settings - Fork 283
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
schema_storage: fix schema GC threshold & improve memory management #3172
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
2a41b00
schema_storage: make runtime GC snapshots in time
liuzix 96d31ec
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 28aa013
processor: remove schema GC lag
liuzix 34b0512
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 3a6fe19
processor: fix schema GC TS
liuzix db6eb2d
Merge branch 'zixiong-fix-schema-gc' of github.com:liuzix/ticdc into …
liuzix 1898bf6
processor: fix schema GC TS
liuzix 4fb7b0f
Merge branch 'master' into zixiong-fix-schema-gc
liuzix c3d1ad5
add test
liuzix 20fb58e
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 4a60654
adjust code
liuzix 3a57fd5
Merge branch 'zixiong-fix-schema-gc' of github.com:liuzix/ticdc into …
liuzix e2902d6
fix bug
liuzix 848b1fa
fix ut
liuzix 388f25c
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 2448247
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 465c218
add metrics for GC Ts
liuzix ad4d71d
Merge branch 'master' into zixiong-fix-schema-gc
liuzix dd24ed9
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 3c8898f
fix metrics
liuzix c588cc0
add Grafana panel
liuzix 697a497
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 0c6ebb5
fix Grafana panel
liuzix e462f4e
Merge branch 'zixiong-fix-schema-gc' of github.com:liuzix/ticdc into …
liuzix 0092257
fix update processor lastSchemaTs
liuzix 0d8458d
fix Grafana panel instant = true
liuzix 5c10065
add metrics prefix
liuzix 797bd05
Merge branch 'master' into zixiong-fix-schema-gc
liuzix a7127e6
Merge branch 'master' into zixiong-fix-schema-gc
liuzix e274e64
add nil check for changefeed status
liuzix d50d33a
Merge branch 'zixiong-fix-schema-gc' of github.com:liuzix/ticdc into …
liuzix 16fe2f5
fix Grafana pluginVersion
liuzix 082a66c
fix Grafana value name
liuzix 3105724
Merge branch 'master' into zixiong-fix-schema-gc
liuzix 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
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
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.
What is the
20min
GC delay used for originally?I found the earliest issue for this fix: #1069, which said
Some of other potential problems caused by table puller starting from a startTs that is too early.
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.
It was used to accommodate some buggy behaviors in the old processor, where a puller is started from a timestamp less than the global checkpoint. The new owner does not have this problem.