Skip to content

Conversation

Tim-Brooks
Copy link
Contributor

Make the method to transition to handoff be generic and support multiple
states.

@Tim-Brooks Tim-Brooks added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. v9.1.0 labels Apr 3, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Indexing Meta label for Distributed Indexing team label Apr 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Apr 3, 2025
Comment on lines 221 to 224
IndexReshardingState.Split.TargetShardState[] newTargets = Arrays.copyOf(
splitState.targetShards(),
splitState.targetShards().length
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should make a builder to centralize the logic for creating a new state instead of mutating the existing one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you had already created one that I wasn't using. I just switched to that.

@Tim-Brooks Tim-Brooks requested a review from bcully April 4, 2025 03:58
Copy link
Contributor

@bcully bcully left a comment

Choose a reason for hiding this comment

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

LGTM

@Tim-Brooks Tim-Brooks removed the serverless-linked Added by automation, don't add manually label Apr 4, 2025
@Tim-Brooks Tim-Brooks merged commit 68bc2b8 into elastic:main Apr 4, 2025
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >non-issue Team:Distributed Indexing Meta label for Distributed Indexing team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants