Skip to content

Conversation

@sadanand48
Copy link
Contributor

What changes were proposed in this pull request?

In the current impl, all file types in the DB are transferred in every batch and subsequent requests exclude the already tranferred files. If the mod time for a file changes they would be resent in the next batch which means that a file like LOG would be transferred in every batch.

To avoid this we can send non-sst files only in the last batch and send in the .sst files in the earlier transfers.

What is the link to the Apache JIRA

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

How was this patch tested?

Unit tests

@sadanand48 sadanand48 added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Jul 24, 2025
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 guess we want to add a few lines of explanation in the writeDBToArchive or writeDbDataToStream method, that as an optimization, onlySstFile is expected to be false only at the last batch iteration. Otherwise several months from now I won't remember a thing.

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.

Apart from these cosmetic issues this PR almost ready to go

@sadanand48 sadanand48 marked this pull request as ready for review July 30, 2025 05:49
jonaswu2000

This comment was marked as duplicate.

@sadanand48 sadanand48 merged commit 2870126 into apache:master Jul 30, 2025
90 of 93 checks passed
@sadanand48
Copy link
Contributor Author

Thanks @jojochuang for the review.

jojochuang pushed a commit to jojochuang/ozone that referenced this pull request Jul 31, 2025
jojochuang added a commit to jojochuang/ozone that referenced this pull request Nov 19, 2025
…arball transfer. (apache#8857)"

This reverts commit 2870126.

 Conflicts:
	hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServletInodeBasedXfer.java

Change-Id: Ib9141efa7e55b0f71520da8e16d32f5cd9b63331
jojochuang added a commit that referenced this pull request Nov 21, 2025
…arball transfer. (#8857)"

This reverts commit 2870126.

 Conflicts:
	hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServletInodeBasedXfer.java

Change-Id: Ib9141efa7e55b0f71520da8e16d32f5cd9b63331
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.

3 participants