Skip to content

Fix Empty Step Info not Comparing Correctly#78442

Merged
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:empty-step-info-equals
Sep 29, 2021
Merged

Fix Empty Step Info not Comparing Correctly#78442
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:empty-step-info-equals

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Follow up to #78390. The EmptyInfo would not compare
correctly because it doesn't implement equals or hashcode,
breaking deduplication for SetStepInfoUpdateTask.

=> just making it a singleton to fix this and have a fast comp via
instance equality.

Follow up to #78390. The `EmptyInfo` would not compare
correctly because it doesn't implement equals or hashcode,
breaking deduplication for `SetStepInfoUpdateTask`.

=> just making it a singleton to fix this and have a fast comp via
instance equality.
@original-brownbear original-brownbear added >non-issue :Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. v8.0.0 v7.16.0 labels Sep 29, 2021
Copy link
Copy Markdown
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

Copy link
Copy Markdown
Contributor

@probakowski probakowski left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear original-brownbear merged commit f8c43ad into elastic:master Sep 29, 2021
@original-brownbear original-brownbear deleted the empty-step-info-equals branch September 29, 2021 11:57
original-brownbear added a commit that referenced this pull request Sep 29, 2021
Follow up to #78390. The `EmptyInfo` would not compare
correctly because it doesn't implement equals or hashcode,
breaking deduplication for `SetStepInfoUpdateTask`.

=> just making it a singleton to fix this and have a fast comp via
instance equality.
@original-brownbear original-brownbear restored the empty-step-info-equals branch April 18, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/ILM+SLM DO NOT USE. Use ":StorageEngine/ILM" or ":Distributed Coordination/SLM" instead. >non-issue v7.16.0 v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants