-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Some Cleanup in o.e.i.engine #42278
Some Cleanup in o.e.i.engine #42278
Conversation
* Remove dead code and parameters * Reduce visibility in some obvious spots * Add missing `assert`s (not that important here since the methods themselves will proably be dead-code eliminated) but still
Pinging @elastic/es-distributed |
Jenkins run elasticsearch-ci/2 |
Jenkins run elasticsearch-ci/bwc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some minor comments but this refactoring makes sense to me. 👍
return new IndexingStrategy(true, true, true, | ||
false, versionForIndexing, null); | ||
false, (long) 1, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/(long) 1/1L/ ?
@@ -457,8 +457,8 @@ public void updateMaxUnsafeAutoIdTimestamp(long newTimestamp) { | |||
|
|||
} | |||
|
|||
protected void processReaders(IndexReader reader, IndexReader previousReader) { | |||
searcherFactory.processReaders(reader, previousReader); | |||
protected void processReaders(IndexReader reader) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe rename the method as well since we have a single reader now?
@@ -59,7 +59,7 @@ public CodecReader wrapForMerge(CodecReader reader) throws IOException { | |||
} | |||
|
|||
// pkg private for testing | |||
static CodecReader wrapReader(String recoverySourceField, CodecReader reader, Supplier<Query> retainSourceQuerySupplier) | |||
private static CodecReader wrapReader(String recoverySourceField, CodecReader reader, Supplier<Query> retainSourceQuerySupplier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the above comment now?
thanks @jpountz ! |
* Some Cleanup in o.e.i.engine * Remove dead code and parameters * Reduce visibility in some obvious spots * Add missing `assert`s (not that important here since the methods themselves will probably be dead-code eliminated) but still
* Some Cleanup in o.e.i.engine * Remove dead code and parameters * Reduce visibility in some obvious spots * Add missing `assert`s (not that important here since the methods themselves will probably be dead-code eliminated) but still
assert
s (not that important here since the methodsthemselves will probably be dead-code eliminated) but still