Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Snapshot diff should not filter SST Files based by reading SST file reader and instead should rely on rocksdb's liveMetadataFile which also includes tombstone entries.

When creating dag compaction log as well, key ranges should also look at liveMetadataFile.

What is the link to the Apache JIRA

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

How was this patch tested?

Existing Unit tests and adding more

…g SST file reader

Change-Id: If657ea759afd90e87fc4e8e975546235d559401e
@adoroszlai adoroszlai added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Dec 11, 2024
Change-Id: Ic5518fc7631fbac7caac8ffb5b743c157168524f
Change-Id: I189e26e59142ef4f6d1f035e6663bcc1639a59f4
Change-Id: I6160cb11bd5d942bf9990e0ab1ca6014b2250bf1
@swamirishi swamirishi marked this pull request as ready for review December 12, 2024 05:05
@swamirishi swamirishi marked this pull request as draft December 12, 2024 05:05
Change-Id: I9a87f513b41982e3695b13f3ad6c4a17e2230579
Copy link
Contributor

@hemantk-12 hemantk-12 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 for the patch.

LGTM.

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.

Changes look good to me. Thank you for making tehse changes @swamirishi

Change-Id: Ib0dde58b036f4061327806c8a2f8a460464bf224

# Conflicts:
#	hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java
#	hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
Change-Id: Iaf7b1bf0b1c986a8956e3fdfa0598dff4f56766f
Change-Id: I9f37dc42e98fbf9995a659ddabbd14debe940d78

# Conflicts:
#	hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java
#	hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java
Change-Id: I9007e70744a6fa1f74f5d3411d469e20cb46b093
@swamirishi swamirishi marked this pull request as ready for review December 13, 2024 15:32
RocksDiffUtils.filterRelevantSstFiles(inputFiles, tablePrefixes, fromDB);
deltaFiles.addAll(inputFiles);
}
addToObjectIdMap(fsTable, tsTable, deltaFiles,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can you please log deltaFiles at DEBUG level?

Copy link
Contributor

@hemantk-12 hemantk-12 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 for the fix.

LGTM.

@swamirishi swamirishi merged commit 7a46080 into apache:master Dec 13, 2024
53 checks passed
@swamirishi
Copy link
Contributor Author

Thanks @hemantk-12 @prashantpogde for reviewing the patch

Comment on lines -828 to +839
public synchronized Optional<List<String>> getSSTDiffListWithFullPath(
DifferSnapshotInfo src,
DifferSnapshotInfo dest,
String sstFilesDirForSnapDiffJob
) throws IOException {
public synchronized Optional<List<String>> getSSTDiffListWithFullPath(DifferSnapshotInfo src,
DifferSnapshotInfo dest,
String sstFilesDirForSnapDiffJob) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Indenting parameters like this triggers unnecessary change whenever visibility / return type / method name is updated.

import org.apache.ratis.util.TimeDuration;
import jakarta.annotation.Nonnull;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please use static import for assertions and mocks (see HDDS-9961).

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