Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Oct 8, 2024

Similarly to what we did in #114199, lets remove some unnecessary manipulation of the keys in the method removeAndAdd.

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Oct 8, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

private T set(long key, T value) {
if (value == null) {
throw new IllegalArgumentException("Null values are not supported");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's just assert it and don't waste time checking for it

Copy link
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM, maybe make values a local again for extra fun :)

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Oct 10, 2024
@iverase
Copy link
Contributor Author

iverase commented Oct 10, 2024

@elasticmachine update branch

@iverase
Copy link
Contributor Author

iverase commented Oct 10, 2024

@elasticmachine update branch

@iverase iverase enabled auto-merge (squash) October 10, 2024 15:53
@iverase iverase disabled auto-merge October 10, 2024 15:53
@iverase iverase merged commit 14f0b48 into elastic:main Oct 10, 2024
2 checks passed
@iverase iverase deleted the ObjectPagedHashMap branch October 10, 2024 15:54
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 10, 2024
iverase added a commit that referenced this pull request Oct 10, 2024
matthewabbott pushed a commit to matthewabbott/elasticsearch that referenced this pull request Oct 10, 2024
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Core/Infra Meta label for core/infra team v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants