Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust translog operation assertions for synthetic source #119330

Merged
merged 5 commits into from
Jan 4, 2025

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Dec 27, 2024

When synthetic sources are used in peer recoveries, the translog operations via peer recoveries may differ from those created through replication. This change relaxes the translog operation assertion to account for synthetic source, allowing these operations to be considered equivalent.

Closes #119191

@dnhatn dnhatn force-pushed the relax-translog-assertion branch 2 times, most recently from 50240da to 8206042 Compare December 28, 2024 03:16
@dnhatn dnhatn force-pushed the relax-translog-assertion branch from 8206042 to b521d7d Compare December 28, 2024 03:21
@dnhatn dnhatn added :StorageEngine/Logs You know, for Logs >non-issue auto-backport Automatically create backport pull requests when merged v8.18.0 labels Dec 28, 2024
@dnhatn dnhatn marked this pull request as ready for review December 28, 2024 03:31
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM from my side. I think distributed team should review this as well.

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

@dnhatn
Copy link
Member Author

dnhatn commented Jan 4, 2025

@martijnvg @henningandersen Thanks for reviewing!

@dnhatn dnhatn merged commit 693f3bf into elastic:main Jan 4, 2025
16 checks passed
@dnhatn dnhatn deleted the relax-translog-assertion branch January 4, 2025 05:34
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 119330

dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Jan 4, 2025
…9330)

When synthetic sources are used in peer recoveries, the translog
operations via peer recoveries may differ from those created through
replication. This change relaxes the translog operation assertion to
account for synthetic source, allowing these operations to be considered
equivalent.

Closes elastic#119191
elasticsearchmachine pushed a commit that referenced this pull request Jan 4, 2025
…119559)

When synthetic sources are used in peer recoveries, the translog
operations via peer recoveries may differ from those created through
replication. This change relaxes the translog operation assertion to
account for synthetic source, allowing these operations to be considered
equivalent.

Closes #119191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >non-issue :StorageEngine/Logs You know, for Logs Team:StorageEngine v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] SmokeTestMultiNodeClientYamlTestSuiteIT class failing
4 participants