Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

It's not clear from these docs that S3 object replication doesn't work
reliably. This commit spells this out and explains why.

It's not clear from these docs that S3 object replication doesn't work
reliably. This commit spells this out and explains why.
@DaveCTurner DaveCTurner requested a review from a team as a code owner October 16, 2025 14:36
@DaveCTurner DaveCTurner added the documentation Improvements or additions to documentation label Oct 16, 2025
Copy link
Contributor

@eedugon eedugon left a comment

Choose a reason for hiding this comment

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

LGTM, some minor suggestions and link fix.

Unfortunately this replication is not compatible with {{es}} snapshots.
The objects that {{es}} writes to the repository refer to other objects which already exist in the repository, and {{es}} only deletes an object from the repository after it becomes unreferenced by all other objects.
AWS S3 replication will apply operations to the replica repository in a different order from the order in which {{es}} applies them to the primary repository, and this may leave the replica repository in an invalid state, with objects referring to other objects that do not exist.
To replicate a repository's contents elsewhere you must follow the [repository backup](snapshot-and-restore/self-managed.md#snapshots-repository-backup) process.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To replicate a repository's contents elsewhere you must follow the [repository backup](snapshot-and-restore/self-managed.md#snapshots-repository-backup) process.
To replicate a repository's contents elsewhere, follow the [repository backup](/deploy-manage/tools/snapshot-and-restore/self-managed.md#snapshots-repository-backup) process.

Copy link
Contributor

Choose a reason for hiding this comment

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

The previous should fix the link that is making the build to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++ thanks

Comment on lines 382 to 383
AWS S3 supports [replication of objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html), both within a single region and across regions.
Unfortunately this replication is not compatible with {{es}} snapshots.
Copy link
Contributor

Choose a reason for hiding this comment

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

The original proposal is going to place the 5 lines in the same paragraph, i'm going to propose to divide the content in 3 different paragraphs.

Suggested change
AWS S3 supports [replication of objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html), both within a single region and across regions.
Unfortunately this replication is not compatible with {{es}} snapshots.
AWS S3 supports [replication of objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html), both within a single region and across regions. However, this replication mechanism is not compatible with {{es}} snapshots.

AWS S3 supports [replication of objects](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html), both within a single region and across regions.
Unfortunately this replication is not compatible with {{es}} snapshots.
The objects that {{es}} writes to the repository refer to other objects which already exist in the repository, and {{es}} only deletes an object from the repository after it becomes unreferenced by all other objects.
AWS S3 replication will apply operations to the replica repository in a different order from the order in which {{es}} applies them to the primary repository, and this may leave the replica repository in an invalid state, with objects referring to other objects that do not exist.
Copy link
Contributor

@eedugon eedugon Oct 16, 2025

Choose a reason for hiding this comment

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

Suggested change
AWS S3 replication will apply operations to the replica repository in a different order from the order in which {{es}} applies them to the primary repository, and this may leave the replica repository in an invalid state, with objects referring to other objects that do not exist.
Because AWS S3 replication can apply operations to the replica repository in a different order than {{es}} applies them to the primary repository, the replica repository can become invalid, with objects referring to others that do not exist.

@shainaraskas
Copy link
Collaborator

removing myself as a reviewer since @eedugon looked at this. @DaveCTurner no need to request one of us directly (my colleagues are usually a little faster with reviews than I am 😅)

@shainaraskas shainaraskas removed their request for review October 16, 2025 15:49
@DaveCTurner DaveCTurner requested a review from eedugon October 17, 2025 11:05
@DaveCTurner
Copy link
Contributor Author

Thanks Edu, good call on splitting up into multiple paragraphs. I expanded the middle paragraph a little and made some of the changes you suggested.

@github-actions
Copy link

github-actions bot commented Oct 17, 2025

🔍 Preview links for changed docs

Copy link
Contributor

@eedugon eedugon left a comment

Choose a reason for hiding this comment

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

LGTM!
Just added a minor suggestion to improve the flow and rhythm of the biggest paragraph, for your consideration.

We also need to check why the CI job is failing. I'll check internally with docs engineers.

@DaveCTurner DaveCTurner enabled auto-merge (squash) October 20, 2025 09:36
@DaveCTurner DaveCTurner merged commit 814a515 into elastic:main Oct 20, 2025
7 checks passed
@DaveCTurner DaveCTurner deleted the 2025/10/16/s3-replication branch October 20, 2025 10:28
rhr323 pushed a commit to rhr323/docs-content that referenced this pull request Oct 27, 2025
It's not clear from these docs that S3 object replication doesn't work
reliably. This commit spells this out and explains why.

Co-authored-by: Edu González de la Herrán <[email protected]>
DaveCTurner added a commit to DaveCTurner/elastic-docs-content that referenced this pull request Oct 28, 2025
naemono pushed a commit to naemono/docs-content that referenced this pull request Oct 28, 2025
It's not clear from these docs that S3 object replication doesn't work
reliably. This commit spells this out and explains why.

Co-authored-by: Edu González de la Herrán <[email protected]>
DaveCTurner added a commit that referenced this pull request Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants