Skip to content

Take snapshot for mods using copy instead of hard link#11728

Merged
OneSizeFitsQuorum merged 2 commits intomasterfrom
take-snapshot-for-mods-by-copy
Dec 15, 2023
Merged

Take snapshot for mods using copy instead of hard link#11728
OneSizeFitsQuorum merged 2 commits intomasterfrom
take-snapshot-for-mods-by-copy

Conversation

@THUMarkLau
Copy link
Copy Markdown
Contributor

Currently, a hard link of mods file is created when taking snapshot for data region, but the mods file is not immutable, which means the snapshot could be updated. We need to make sure the snapshot is immutable too, so a copy of mods file should be created instead of hard link.

Copy link
Copy Markdown
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarqubecloud
Copy link
Copy Markdown

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (8854954) 49.09% compared to head (c9156d8) 49.09%.
Report is 2 commits behind head on master.

Files Patch % Lines
...orageengine/dataregion/snapshot/SnapshotTaker.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #11728      +/-   ##
============================================
- Coverage     49.09%   49.09%   -0.01%     
  Complexity    25008    25008              
============================================
  Files          2827     2827              
  Lines        177064   177072       +8     
  Branches      21225    21226       +1     
============================================
- Hits          86935    86934       -1     
- Misses        90129    90138       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 54a3733 into master Dec 15, 2023
@OneSizeFitsQuorum OneSizeFitsQuorum deleted the take-snapshot-for-mods-by-copy branch December 15, 2023 09:09
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants