Skip to content

Conversation

@mattl-netflix
Copy link
Contributor

@mattl-netflix mattl-netflix commented Oct 14, 2025

This persists an alternative location for backup metadata in S3 in case of unavailability of the primary source of truth. Tests are in progress and will be added in a follow-up commit. I have confirmed it WAI in practice.

@mattl-netflix mattl-netflix force-pushed the feature/validation_markers_in_s3 branch 10 times, most recently from 9d94564 to 783b495 Compare October 17, 2025 15:55
Copy link

@clohfink clohfink left a comment

Choose a reason for hiding this comment

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

+1 with some changes you can ignore if disagree

import javax.inject.Inject;
import javax.inject.Provider;

public class SnapshotValidationMarkerWriter {

Choose a reason for hiding this comment

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

NP: use of Verification instead of Validation other places, rename to maintain consistent terminology

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.

try {
fs.putObject(config.getBackupPrefix(), key, remotePath);
} catch (Exception e) {
logger.error("Failed to put snapshot verification marker. bucket: {}, key: {}, value: {}, message: {}",

Choose a reason for hiding this comment

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

This could use a retry since it doesnt provide any metrics or anything to notify and we expect S3 puts to fail sometimes.

Choose a reason for hiding this comment

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

also a success/failure metric might be good to add

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added retries. We can metrics implicitly when we centralize validation and include these in the checks.

IMO we can justify stacking a bet here because this is meant as a fallback rather than the main mechanism to get these data.

@mattl-netflix mattl-netflix force-pushed the feature/validation_markers_in_s3 branch from f21eb07 to d998c72 Compare November 6, 2025 17:38
@mattl-netflix mattl-netflix force-pushed the feature/validation_markers_in_s3 branch from d998c72 to 558d7ab Compare November 6, 2025 18:47
@mattl-netflix mattl-netflix merged commit 7f6a49e into 4.x Nov 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants