Skip to content

Conversation

@mushao999
Copy link
Contributor

In PR #26827, @jasontedor enabled engine factory to be pluggable. engineFactory parameter of IndexShard constructor became not nullable, so @nullable annotation for this parameter was removed in that PR.
However, @nullable annotaion was still there after the PR was merged, maybe a merge operation mistake.
This PR remove the @nullable annotaion of engineFactory in IndexShard constructor, in order to solve the conflict between @nullable annotaion and Objects.requireNonNull(engineFactory).

@elasticsearchmachine elasticsearchmachine added v8.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Nov 7, 2021
@jasontedor
Copy link
Member

This change is clearly correct, thanks @mushao999, but I think that someone on @elastic/es-distributed should review and shepherd the change through the process.

@jasontedor jasontedor added the :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. label Nov 8, 2021
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Nov 8, 2021
@mushao999
Copy link
Contributor Author

@jasontedor Please help to ping someone who can review and merge this PR. This small PR stays too long. Thanks

@arteam arteam added auto-backport Automatically create backport pull requests when merged v8.0.0 labels Jan 10, 2022
Copy link
Contributor

@arteam arteam left a comment

Choose a reason for hiding this comment

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

LGTM! I can confirm that EngineFactory is indeed can't be null

@arteam arteam merged commit 0b2748c into elastic:master Jan 10, 2022
@arteam
Copy link
Contributor

arteam commented Jan 10, 2022

Thank you @mushao999 for the contribution!

@arteam arteam removed v8.0.0 auto-backport Automatically create backport pull requests when merged labels Jan 10, 2022
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. external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue >refactoring Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants