This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
relay: don't purge relay logs when connected to last source #1400
Merged
Merged
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dadb4a3
relay: don't purge relay logs when connected to last source
lance6716 3b4d35f
fix behaviour
lance6716 d426a66
Merge branch 'master' into dont-purge
lance6716 9df48b7
fix test
lance6716 83a0f82
add some tests
lance6716 4c7a9cb
Merge branch 'master' of https://github.com/pingcap/dm into dont-purge
lance6716 ead923d
Merge branch 'master' into dont-purge
3pointer 10543db
fix ERROR 1236 (HY000): The slave is connecting using CHANGE MASTER T…
lance6716 08cd1a9
Merge branch 'dont-purge' of github.com:lance6716/dm into dont-purge
lance6716 6f12b59
purge relay-dir when stop source
lance6716 34b58aa
Merge branch 'master' into dont-purge
lichunzhu e0b20a6
address comments and move some logic
lance6716 7ffc952
Merge branch 'dont-purge' of github.com:lance6716/dm into dont-purge
lance6716 16d7c07
address comment
lance6716 88656cd
Merge branch 'master' into dont-purge
lance6716 379151d
remove the behaviour "purge relay when stop source"; add test
lance6716 4de7e74
move ResetStart into interface
lance6716 4bed56b
Merge branch 'master' into dont-purge
lance6716 65acc5c
Merge branch 'master' into dont-purge
lance6716 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
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.
I think it's a bit aggressive.
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.
how to change 🤔
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.
I suggest moving relay dir to another name (
relay_dir
->relay_dir_deprecated
) instead of deleting it directly. We havepurge-relay
command and I think the purge action should only happen in this command.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.
relay_dir_deprecated
is out ofrelay_dir
thus can't be deleted usingpurge-relay
. And disk space is not freedThere 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.
I don't think it's a good idea.
stop source
is a normal operation. shouldn't purge data or move to another directory.