-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] types from translog #2439
[Remove] types from translog #2439
Conversation
Can one of the admins verify this patch? |
❌ Gradle Check failure 7bcc741e8d133da786577225829ee89851c3c9b7 |
|
start gradle check |
|
Removes persisting the type in the translog since types are no longer supported. Signed-off-by: Nicholas Walter Knize <[email protected]>
7bcc741
to
a141927
Compare
❌ Gradle Check failure 7bcc741e8d133da786577225829ee89851c3c9b7 |
Signed-off-by: Nicholas Walter Knize <[email protected]>
} | ||
|
||
private void applyOperation(Engine engine, Engine.Operation operation) throws IOException { | ||
switch (operation.operationType()) { | ||
case INDEX: | ||
Engine.Index engineIndex = (Engine.Index) operation; |
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 am concerned about this change: indeed mapping.merge
does not modify the source mapping (at least, mush not), BUT removing mapping.merge(update, MapperService.MergeReason.MAPPING_RECOVERY)
may now hide any issues which may have been surfaced during the mapping reconciliation (fe check ObjectMapper::doMerge).
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.
This is stale code as of #2077 since translog is no longer used in recovery
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.
Ah I see, could we remove it?
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.
Might look into doing that in another PR?
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.
Might look into doing that in another PR?
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.
👍
Test failure in Log 3263 is reported in issue #2440, seems a new test failure occurred since yesterday. |
Signed-off-by: Nicholas Walter Knize <[email protected]>
Another #2442; refiring:
|
start gradle check |
Removes persisting the type in the translog since types are no longer supported.
relates #1940