[IOTDB-4758]Delete snapshot after region migration#7739
Merged
xingtanzjr merged 4 commits intoapache:masterfrom Oct 27, 2022
suchenglong:fix_mulitleader_spot_clean
Merged
[IOTDB-4758]Delete snapshot after region migration#7739xingtanzjr merged 4 commits intoapache:masterfrom suchenglong:fix_mulitleader_spot_clean
xingtanzjr merged 4 commits intoapache:masterfrom
suchenglong:fix_mulitleader_spot_clean
Conversation
wangchao316
reviewed
Oct 26, 2022
| impl.activePeer(peer); | ||
|
|
||
| // step 7: spot clean | ||
| logger.info("[MultiLeaderConsensus] do spot clean..."); |
Contributor
Author
There was a problem hiding this comment.
After a peer is added, the snapshot replicas need to be transferred. After the snapshot replicas are transferred and loaded, you need to clear the temporary replica files on the remote server to prevent data space waste.
wangchao316
reviewed
Oct 26, 2022
...main/java/org/apache/iotdb/consensus/multileader/service/MultiLeaderRPCServiceProcessor.java
Show resolved
Hide resolved
xingtanzjr
approved these changes
Oct 27, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Content1 ...
Delete remote snapshot after region migration
test
Test plan:
Result:







Before volume reduction:
Stop node 2:
Removing node 2:
The data migration is complete and no temporary snapshot file is available:
Query migrated replica data on datanoe1:
This PR has:
for an unfamiliar reader.
for code coverage.
Key changed/added classes (or packages if there are too many classes) in this PR