-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
[ML] Adjust finalize job action to work with documents #34226
Changes from 11 commits
ebab3e0
d0da950
e647611
168fd12
c097134
a0b45d5
c5e05ff
dbfaba1
eedbfd2
99008ff
a157a6e
deb3087
70348fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,6 @@ public static UpdateJobAction.Request parseRequest(String jobId, XContentParser | |
|
||
/** Indicates an update that was not triggered by a user */ | ||
private boolean isInternal; | ||
private boolean waitForAck = true; | ||
|
||
public Request(String jobId, JobUpdate update) { | ||
this(jobId, update, false); | ||
|
@@ -88,14 +87,6 @@ public boolean isInternal() { | |
return isInternal; | ||
} | ||
|
||
public boolean isWaitForAck() { | ||
return waitForAck; | ||
} | ||
|
||
public void setWaitForAck(boolean waitForAck) { | ||
this.waitForAck = waitForAck; | ||
} | ||
|
||
@Override | ||
public ActionRequestValidationException validate() { | ||
return null; | ||
|
@@ -111,11 +102,6 @@ public void readFrom(StreamInput in) throws IOException { | |
} else { | ||
isInternal = false; | ||
} | ||
if (in.getVersion().onOrAfter(Version.V_6_3_0)) { | ||
waitForAck = in.readBoolean(); | ||
} else { | ||
waitForAck = true; | ||
} | ||
} | ||
|
||
@Override | ||
|
@@ -126,9 +112,6 @@ public void writeTo(StreamOutput out) throws IOException { | |
if (out.getVersion().onOrAfter(Version.V_6_2_2)) { | ||
out.writeBoolean(isInternal); | ||
} | ||
if (out.getVersion().onOrAfter(Version.V_6_3_0)) { | ||
out.writeBoolean(waitForAck); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to read, if writing to a version in between 6.3.0 and the version the feature branch gets merged into should this write |
||
} | ||
} | ||
|
||
@Override | ||
|
@@ -144,8 +127,7 @@ public boolean equals(Object o) { | |
if (o == null || getClass() != o.getClass()) return false; | ||
UpdateJobAction.Request that = (UpdateJobAction.Request) o; | ||
return Objects.equals(jobId, that.jobId) && | ||
Objects.equals(update, that.update) && | ||
isInternal == that.isInternal; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
Objects.equals(update, that.update); | ||
} | ||
|
||
@Override | ||
|
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.
Do we need to still read from the wire using something like this?
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 don't know what I was thinking I should have reviewed this before asking for a review sorry. I pushed 2 more commits one addresses this and the other adds the finalize job action back into the security tests.