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

Remove FlushType and make resources final in InternalEngine #9565

Merged
merged 1 commit into from Feb 4, 2015

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Feb 4, 2015

This commit removes the FlushType entirely and replaces it in the most places with
a simple Engine#flush() call. Flushing without committing the translog is now
entirely private to the engine and is only called in one place.


private final SearcherFactory searcherFactory = new SearchFactory();
private volatile SearcherManager searcherManager;
private final SearcherManager searcherManager;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonderful these can now be final!

@mikemccand
Copy link
Contributor

LGTM, great cleanup!

@dakrone
Copy link
Member

dakrone commented Feb 4, 2015

Looking forward to this, this will clean up the ShadowEngine a lot also!

@s1monw
Copy link
Contributor Author

s1monw commented Feb 4, 2015

pushed a new commit

@mikemccand
Copy link
Contributor

LGTM, thanks @s1monw

This commit removes the FlushType entirely and replaces it in the most places with
a simple `Engine#flush()` call. Flushing without committing the translog is now
entirely private to the engine and is only called in one place.
@s1monw s1monw merged commit 4732ef3 into elastic:master Feb 4, 2015
@s1monw s1monw deleted the make_iw_final branch February 4, 2015 17:54
@clintongormley clintongormley changed the title [ENGINE] Remove FlushType and make resources final in InternalEngine Remove FlushType and make resources final in InternalEngine Jun 7, 2015
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Engine :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. labels Feb 13, 2018
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 v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants