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

Update several minor things from opendistro to opensearch #57

Merged
merged 16 commits into from
May 21, 2021
Merged

Update several minor things from opendistro to opensearch #57

merged 16 commits into from
May 21, 2021

Conversation

spbjss
Copy link
Contributor

@spbjss spbjss commented May 21, 2021

Description

Update several minor things from opendistro to opensearch

Issues Resolved

#40

Check List

  • [ Y ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Alex and others added 15 commits May 17, 2021 16:43
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
latest code which is requred to support the setting change.

Signed-off-by: Alex <pengsun@amazon.com>
… 1.0.0-beta1

to 1.x
2. Update the code import from opendistro to opensearch
3. Update the CI workflow script to apply the dependencis version
   change.

Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
Signed-off-by: Alex <pengsun@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented May 21, 2021

Codecov Report

Merging #57 (90fe770) into main (cf7fd84) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #57      +/-   ##
============================================
+ Coverage     79.32%   79.36%   +0.04%     
- Complexity     2687     2690       +3     
============================================
  Files           243      243              
  Lines         11123    11123              
  Branches       1012     1012              
============================================
+ Hits           8823     8828       +5     
+ Misses         1882     1879       -3     
+ Partials        418      416       -2     
Flag Coverage Δ Complexity Δ
plugin 79.36% <ø> (+0.04%) 2690.00 <ø> (+3.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
.../java/org/opensearch/ad/AnomalyDetectorPlugin.java 95.38% <ø> (ø) 10.00 <0.00> (ø)
...rg/opensearch/ad/constant/CommonErrorMessages.java 90.00% <ø> (ø) 1.00 <0.00> (ø)
.../opensearch/ad/cluster/ADClusterEventListener.java 92.00% <0.00%> (-2.00%) 14.00% <0.00%> (-1.00%)
...ain/java/org/opensearch/ad/task/ADTaskManager.java 73.21% <0.00%> (+0.22%) 82.00% <0.00%> (+1.00%)
...opensearch/ad/indices/AnomalyDetectionIndices.java 51.72% <0.00%> (+0.31%) 45.00% <0.00%> (+1.00%)
src/main/java/org/opensearch/ad/model/ADTask.java 96.56% <0.00%> (+1.25%) 66.00% <0.00%> (+2.00%)

public static final String AD_THREAD_POOL_NAME = "ad-threadpool";
public static final String AD_BATCH_TASK_THREAD_POOL_NAME = "ad-batch-task-threadpool";
public static final String AD_JOB_TYPE = "opendistro_anomaly_detector";
public static final String AD_JOB_TYPE = "opensearch_anomaly_detector";
Copy link
Member

Choose a reason for hiding this comment

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

I think this might be a problem.
Job Scheduler uses this identifier to understand what job it is.
If an old index of job scheduler exists from ODFE, and the cluster is upgraded to OpenSearch, the new job scheduler might not find the right place to run the job for AD.
Adding @ylwu-amzn to the conversation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the comments!
I have submitted another commit to change this job type back.

Copy link
Member

@saratvemulapalli saratvemulapalli May 21, 2021

Choose a reason for hiding this comment

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

Thanks @spbjss, we should document this in the backward compatibility issue!

Signed-off-by: Alex <pengsun@amazon.com>
Copy link
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

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

Thanks for the change!

@spbjss spbjss merged commit 0ec9ef3 into opensearch-project:main May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants