Skip to content

HDDS-14721. Make OM bootstrap implementation configurable.#9830

Draft
sadanand48 wants to merge 4 commits intoapache:masterfrom
sadanand48:HDDS-14721
Draft

HDDS-14721. Make OM bootstrap implementation configurable.#9830
sadanand48 wants to merge 4 commits intoapache:masterfrom
sadanand48:HDDS-14721

Conversation

@sadanand48
Copy link
Contributor

What changes were proposed in this pull request?

With the recent bootstrap V2 impl done as part of HDDS-12984, make the impl controllable via a config.

What is the link to the Apache JIRA

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

How was this patch tested?

unit and integration tests

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @sadanand48 for the patch.

@jojochuang jojochuang added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Feb 26, 2026
Files.delete(sourcePath);
}
} catch (IOException e) {
LOG.warn("Failed to delete source file {}: {}", sourcePath, e.getMessage());

Choose a reason for hiding this comment

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

are we going to retry after the next start or files would stay there forever?

LOG.info("Creating om.db and moving {} active DB files for v1 format", toMove.size());
Files.createDirectories(omDbDir);
for (Path source : toMove) {
Path target = omDbDir.resolve(source.getFileName());

Choose a reason for hiding this comment

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

how do we handle exception when something cannot be moved? or resolved

OZONE_OM_RATIS_SNAPSHOT_MAX_TOTAL_SST_SIZE_DEFAULT = 10737418240L;

public static final String OZONE_OM_DB_CHECKPOINT_USE_V2_KEY
= "ozone.om.db.checkpoint.use.v2";

Choose a reason for hiding this comment

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

v2 is not descriptive name, it's not clear what is the difference between v1 and v2.

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.

5 participants