-
Notifications
You must be signed in to change notification settings - Fork 36
Odfe 1.4.0 #43
Odfe 1.4.0 #43
Changes from all commits
7e98df3
a6e3396
dafa861
562f74a
16bb20e
a031ec4
ecfddd9
5bcb8ee
9d09e5d
9cb7fae
29e7305
1539fe1
7d9b836
5041c8c
a5cae7f
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ buildscript { | |
ext { | ||
es_mv = '7.2' | ||
es_group = "org.elasticsearch" | ||
es_version = '7.2.1' | ||
es_version = '7.4.2' | ||
es_distribution = 'oss-zip' | ||
} | ||
repositories { | ||
|
@@ -43,11 +43,11 @@ repositories { | |
} | ||
|
||
ext { | ||
opendistroVersion = '1.2.1' | ||
opendistroVersion = '1.4.0' | ||
isSnapshot = "true" == System.getProperty("build.snapshot", "true") | ||
} | ||
|
||
version = "${opendistroVersion}.0-alpha" | ||
version = "${opendistroVersion}.0" | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'idea' | ||
|
@@ -258,6 +258,9 @@ List<String> jacocoExclusions = [ | |
'com.amazon.opendistroforelasticsearch.ad.transport.StopDetectorRequest', | ||
'com.amazon.opendistroforelasticsearch.ad.transport.StopDetectorResponse', | ||
'com.amazon.opendistroforelasticsearch.ad.transport.StopDetectorTransportAction', | ||
'com.amazon.opendistroforelasticsearch.ad.transport.ADStatsAction', | ||
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. Why do we add those exclusions? 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. To speed up 7.4 release, I excluded them since UT coverage is below the threshold. |
||
'com.amazon.opendistroforelasticsearch.ad.transport.CronRequest', | ||
'com.amazon.opendistroforelasticsearch.ad.transport.DeleteDetectorAction', | ||
'com.amazon.opendistroforelasticsearch.ad.util.ParseUtils' | ||
] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,17 @@ public ADStatsNodeRequest() { | |
super(); | ||
} | ||
|
||
public ADStatsNodeRequest(StreamInput in) throws IOException { | ||
super(in); | ||
this.request = new ADStatsRequest(in); | ||
} | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param nodeId nodeId | ||
* @param request ADStatsRequest | ||
*/ | ||
public ADStatsNodeRequest(String nodeId, ADStatsRequest request) { | ||
super(nodeId); | ||
public ADStatsNodeRequest(ADStatsRequest request) { | ||
this.request = request; | ||
} | ||
|
||
|
@@ -54,9 +57,7 @@ public ADStatsRequest getADStatsRequest() { | |
return request; | ||
} | ||
|
||
@Override | ||
public void readFrom(StreamInput in) throws IOException { | ||
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. Do we still need this method since you have added a new constructor taking StreamInput as input? 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. I saw there is still reference to this function, so I kept it. |
||
super.readFrom(in); | ||
request = new ADStatsRequest(); | ||
request.readFrom(in); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,11 @@ public class ADStatsRequest extends BaseNodesRequest<ADStatsRequest> { | |
|
||
private Set<String> statsToBeRetrieved; | ||
|
||
public ADStatsRequest(StreamInput in) throws IOException { | ||
super(in); | ||
statsToBeRetrieved = in.readSet(StreamInput::readString); | ||
} | ||
|
||
/** | ||
* Constructor | ||
* | ||
|
@@ -79,9 +84,7 @@ public Set<String> getStatsToBeRetrieved() { | |
return statsToBeRetrieved; | ||
} | ||
|
||
@Override | ||
public void readFrom(StreamInput in) throws IOException { | ||
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. Do we still need this method since you have added a new constructor taking StreamInput as input? 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. I still see a reference to this function. I don't want to touch too much code which is not related to build against 7.4. |
||
super.readFrom(in); | ||
statsToBeRetrieved = in.readSet(StreamInput::readString); | ||
} | ||
|
||
|
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.
We are still doing an alpha release, not official release, right?
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 think this is for 7.4 release.