Skip to content

HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension#9221

Merged
swamirishi merged 4 commits intoapache:masterfrom
swamirishi:HDDS-13856
Oct 31, 2025
Merged

HDDS-13856. Change SstFileInfo to track fileName as the name of the file without sst extension#9221
swamirishi merged 4 commits intoapache:masterfrom
swamirishi:HDDS-13856

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Change SstFileInfo to track fileName as the name of the file without sst extension similar to CompactionFileInfo and CompactionNode class. Refactor CompactionNode to extend SstFileInfo since it shares all the common fields.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-13856

How was this patch tested?

Added Unit tests

…ile without sst extension

Change-Id: Iec643f1cb38be6ee1f58ce67e97c3021bf8ab368
@swamirishi swamirishi added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Oct 30, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

@swamirishi Thanks for working on this,
Could you please make the required changes to testCreateNewSnapshotLocalYaml as it would lead to test failure because the test still expects filenames with .sst, causing mismatch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done moved the test to TestOmSnapshotLocalDataManager since the code has been refactored in the jira in HDDS-13783

Change-Id: Ie56b389d802fa43cf1564849aab5bbcef7c79438
Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

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

i think this is pretty much ready to merge. Let's address the other review comment and then it can merge.


@VisibleForTesting
static boolean shouldSkipNode(CompactionNode node,
static boolean shouldSkipNode(SstFileInfo node,
Copy link
Contributor

Choose a reason for hiding this comment

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

seems unnecessary change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We would need this change later

Copy link
Contributor

@sreejasahithi sreejasahithi left a comment

Choose a reason for hiding this comment

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

Thanks @swamirishi , overall LGTM , please address the remaining comments.

Change-Id: If049d818575d3a3b03eed707ba240827d512a015
Change-Id: I9db2d1d9430cf11209c3e3a36da3ac11e9a1cb35
@swamirishi swamirishi merged commit a8b8607 into apache:master Oct 31, 2025
43 checks passed
@swamirishi
Copy link
Contributor Author

Thank you @sreejasahithi and @jojochuang for reviewing the patch

@adoroszlai
Copy link
Contributor

@swamirishi please set fix version when resolving Jira issue after PR merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants