Skip to content

Lock down Engine.Searcher#34363

Merged
s1monw merged 3 commits intoelastic:masterfrom
s1monw:lock_down_engine_searcher
Oct 16, 2018
Merged

Lock down Engine.Searcher#34363
s1monw merged 3 commits intoelastic:masterfrom
s1monw:lock_down_engine_searcher

Conversation

@s1monw
Copy link
Copy Markdown
Contributor

@s1monw s1monw commented Oct 8, 2018

Engine.Searcher is non-final today which makes it error prone
in the case of wrapping the underlying reader or lucene IndexSearcher
like we do in IndexSearcherWrapper. Yet, there is no subclass of it yet
that would be dramtic to just drop on the floor. With the start of development
of frozen indices this changed since in #34357 functionality was added to
a subclass which would be dropped if a IndexSearcherWrapper is installed on an index.
This change locks down the Engine.Searcher to prevent such a functionality trap.

@s1monw s1monw added >enhancement v7.0.0 :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. v6.5.0 labels Oct 8, 2018
@s1monw s1monw requested a review from jasontedor October 8, 2018 16:20
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

`Engine.Searcher` is non-final today which makes it error prone
in the case of wrapping the underlying reader or lucene `IndexSearcher`
like we do in `IndexSearcherWrapper`. Yet, there is no subclass of it yet
that would be dramtic to just drop on the floor. With the start of development
of frozen indices this changed since in elastic#34357 functionality was added to
a subclass which would be dropped if a `IndexSearcherWrapper` is installed on an index.
This change locks down the `Engine.Searcher` to prevent such a functionality trap.
@s1monw s1monw force-pushed the lock_down_engine_searcher branch from c1fccbc to 9838bb3 Compare October 8, 2018 16:21
Copy link
Copy Markdown
Member

@martijnvg martijnvg 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 like how it is locked down.

@s1monw s1monw merged commit d43a1fa into elastic:master Oct 16, 2018
@s1monw s1monw deleted the lock_down_engine_searcher branch October 16, 2018 12:53
s1monw added a commit that referenced this pull request Oct 16, 2018
`Engine.Searcher` is non-final today which makes it error prone
in the case of wrapping the underlying reader or lucene `IndexSearcher`
like we do in `IndexSearcherWrapper`. Yet, there is no subclass of it yet
that would be dramatic to just drop on the floor. With the start of development
of frozen indices this changed since in #34357 functionality was added to
a subclass which would be dropped if a `IndexSearcherWrapper` is installed on an index.
This change locks down the `Engine.Searcher` to prevent such a functionality trap.
kcm pushed a commit that referenced this pull request Oct 30, 2018
`Engine.Searcher` is non-final today which makes it error prone
in the case of wrapping the underlying reader or lucene `IndexSearcher`
like we do in `IndexSearcherWrapper`. Yet, there is no subclass of it yet
that would be dramatic to just drop on the floor. With the start of development
of frozen indices this changed since in #34357 functionality was added to
a subclass which would be dropped if a `IndexSearcherWrapper` is installed on an index.
This change locks down the `Engine.Searcher` to prevent such a functionality trap.
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Engine Anything around managing Lucene and the Translog in an open shard. >enhancement v6.5.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants