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

Fold engine into IndexShard #9181

Merged
merged 1 commit into from Jan 8, 2015
Merged

Fold engine into IndexShard #9181

merged 1 commit into from Jan 8, 2015

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Jan 7, 2015

This commit removes most of the Engine abstractions and removes
Engine exposure via dependency injection. It also removes the Holder
abstraction and makes the engine itself start at constrcution time.
It removes the start method from the engine entire which means no engine
instances exists until it's started. There is also no way to stop the
engine to restart, it needs to be an entire new Engine

@@ -23,6 +23,7 @@
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.indices.cluster.IndicesClusterStateService;
Copy link
Member

Choose a reason for hiding this comment

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

Extra unneeded additions in this file?

@mikemccand
Copy link
Contributor

LGTM, this is a nice simplification!

private long gcDeletesInMillis = DEFAULT_GC_DELETES.millis();

private volatile boolean enableGcDeletes = true;
private volatile String codecName = DEFAUTL_CODEC;
Copy link
Member

Choose a reason for hiding this comment

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

DEFAUTL -> DEFAULT

@dakrone
Copy link
Member

dakrone commented Jan 7, 2015

Left some comments, but I like the simplification a lot!

@s1monw
Copy link
Contributor Author

s1monw commented Jan 8, 2015

I iterated here a bit and added all kinds of cleanups on the engine. I also added documentation to the new EngineConfig and removed unused methods. I think it's ready, unless anybody objects I will push soon

@jpountz
Copy link
Contributor

jpountz commented Jan 8, 2015

LGTM

This commit removes most of the Engine abstractions and removes
Engine exposure via dependency injection. It also removes the Holder
abstraction and makes the engine itself start at constrcution time.
It removes the start method from the engine entire which means no engine
instances exists until it's started. There is also no way to stop the
engine to restart, it needs to be an entire new Engine
@s1monw s1monw merged commit 959e3ca into elastic:master Jan 8, 2015
@s1monw s1monw deleted the merge_engine branch January 9, 2015 01:27
@s1monw
Copy link
Contributor Author

s1monw commented Jan 9, 2015

I pushed this to 1.x as well

@clintongormley clintongormley changed the title [CORE] Fold engine into IndexShard Fold engine into IndexShard 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

6 participants