Skip to content

HDDS-8196. DB listener to only track SSTs that belong to the tables of interest.#5511

Merged
hemantk-12 merged 3 commits intoapache:masterfrom
hemantk-12:HDDS-8196
Nov 16, 2023
Merged

HDDS-8196. DB listener to only track SSTs that belong to the tables of interest.#5511
hemantk-12 merged 3 commits intoapache:masterfrom
hemantk-12:HDDS-8196

Conversation

@hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

Currently, we track all the column families's compaction in DAG even though we don't need to track everything.
As part of this change, only keyTable, directoryTable and fileTable column family's compaction is tracked in DAG and corresponding SST files are hard-linked in SST back-up dir. Context: #3981 (comment)

What is the link to the Apache JIRA

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

How was this patch tested?

Added new unit and integration tests.

@hemantk-12 hemantk-12 added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Oct 30, 2023
Copy link
Contributor

@prashantpogde prashantpogde left a comment

Choose a reason for hiding this comment

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

Rest looks good to me.

Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

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

Thanks for the patch @hemantk-12. There are a lot of changes done, we can simplify the PR to just check compactionJobInfo.columnFamily() is part of the tablelist

@hemantk-12 hemantk-12 force-pushed the HDDS-8196 branch 2 times, most recently from b4adef6 to eed40e4 Compare November 10, 2023 10:04
Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

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

Thanks for the patch @hemantk-12 LGTM

return true;
}

if (new HashSet<>(inputFiles).equals(new HashSet<>(outputFiles))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this even possible?

Copy link
Contributor Author

@hemantk-12 hemantk-12 Nov 16, 2023

Choose a reason for hiding this comment

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

Yes, it is. We have seen bug caused by this and it was going into infinite loop due to self arc.

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

@hemantk-12 hemantk-12 merged commit 2ed9f44 into apache:master Nov 16, 2023
@hemantk-12
Copy link
Contributor Author

Thanks for the review @swamirishi @prashantpogde @aswinshakil

@hemantk-12 hemantk-12 deleted the HDDS-8196 branch October 28, 2024 18:42
swamirishi pushed a commit to swamirishi/ozone that referenced this pull request Dec 3, 2025
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