Skip to content

ReindexDataStreamIndex bug in assertion caused by reference equality #121325

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

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

parkertimmins
Copy link
Contributor

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 labels Jan 30, 2025
@parkertimmins parkertimmins added >bug :Data Management/Data streams Data streams and their lifecycles v9.0.0 v8.18.0 and removed needs:triage Requires assignment of a team area label labels Jan 30, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jan 30, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine
Copy link
Collaborator

Hi @parkertimmins, I've created a changelog YAML for you.

@parkertimmins parkertimmins merged commit eeb745c into elastic:main Jan 30, 2025
17 checks passed
@parkertimmins parkertimmins deleted the reindex-fix-assertion-bug branch January 30, 2025 22:09
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Jan 30, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.
saikatsarkar056 pushed a commit to saikatsarkar056/elasticsearch that referenced this pull request Jan 31, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.
bpintea pushed a commit to bpintea/elasticsearch that referenced this pull request Jan 31, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.
@parkertimmins
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0
8.18

Questions ?

Please refer to the Backport tool documentation

parkertimmins added a commit to parkertimmins/elasticsearch that referenced this pull request Jan 31, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
parkertimmins added a commit to parkertimmins/elasticsearch that referenced this pull request Jan 31, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
elasticsearchmachine pushed a commit that referenced this pull request Jan 31, 2025
…121325) (#121414)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
parkertimmins added a commit that referenced this pull request Feb 3, 2025
…121325) (#121413)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
@parkertimmins
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

parkertimmins added a commit to parkertimmins/elasticsearch that referenced this pull request Feb 3, 2025
…lastic#121325)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
elasticsearchmachine pushed a commit that referenced this pull request Feb 3, 2025
…121325) (#121596)

Assertion was using reference equality on two boxed longs. So assertion could produce false positives. Change to Objects.equals to check value and avoid null check.

(cherry picked from commit eeb745c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants