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

Use consistent map type in IndicesService #88369

Conversation

original-brownbear
Copy link
Member

Iteration and lookup from this map get quite hot at times for large data nodes.
We shouldn't have different map types here depending on whether or not the latest operation
was an index delete or create on the node.
Also, the wrapped HashMap is slower to iterate than the immutable collections map.

relates #77466

Iteration and lookup from this map get quite hot at times for large data nodes.
We shouldn't have different map types here depending on whether or not the latest operation
was an index delete or create on the node.
Also, the wrapped HashMap is slower to iterate than the immutable collections map.
@original-brownbear original-brownbear added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v8.4.0 labels Jul 8, 2022
@original-brownbear original-brownbear marked this pull request as ready for review July 8, 2022 12:32
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jul 8, 2022
@elasticmachine
Copy link
Collaborator

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

@original-brownbear
Copy link
Member Author

Thanks Ievgen!

@original-brownbear original-brownbear merged commit d7b6a32 into elastic:master Jul 8, 2022
@original-brownbear original-brownbear deleted the consistent-map-type-indices-service branch July 8, 2022 13:41
@original-brownbear original-brownbear restored the consistent-map-type-indices-service branch April 18, 2023 21:00
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 Area. Please avoid if you can. >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants