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

[backport to 2.x] Enforce DOCUMENT Replication for AD Indices #949

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

kaituo
Copy link
Collaborator

@kaituo kaituo commented Jul 11, 2023

Description

In this PR, we temporarily enforce DOCUMENT replication for AD indices. This change is necessary due to the current limitation of SegRep, which doesn't support Get/MultiGet by ID. This measure will be in place until SegRep adds support for these operations.

This adjustment aligns with the modification made in the referenced PR: opensearch-project/job-scheduler#417

Issues Resolved

#936

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.

In this PR, we temporarily enforce DOCUMENT replication for AD indices. This change is necessary due to the current limitation of SegRep, which doesn't support Get/MultiGet by ID. This measure will be in place until SegRep adds support for these operations.

This adjustment aligns with the modification made in the referenced PR: opensearch-project/job-scheduler#417

Signed-off-by: Kaituo Li <[email protected]>
@kaituo kaituo requested review from dbwiddis and amitgalitz July 11, 2023 21:35
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #949 (5ef9fc5) into 2.x (0b9be84) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x     #949      +/-   ##
============================================
- Coverage     79.52%   79.37%   -0.16%     
+ Complexity     4330     4318      -12     
============================================
  Files           307      307              
  Lines         18143    18150       +7     
  Branches       1909     1909              
============================================
- Hits          14429    14406      -23     
- Misses         2799     2826      +27     
- Partials        915      918       +3     
Flag Coverage Δ
plugin 79.37% <100.00%> (-0.16%) ⬇️

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

Impacted Files Coverage Δ
...opensearch/ad/indices/AnomalyDetectionIndices.java 72.42% <100.00%> (+0.36%) ⬆️

... and 8 files with indirect coverage changes

@kaituo kaituo requested a review from sudiptoguha July 11, 2023 23:15
@kaituo kaituo merged commit 4b21068 into opensearch-project:2.x Jul 11, 2023
jackiehanyang added a commit that referenced this pull request Sep 1, 2023
jackiehanyang added a commit that referenced this pull request Sep 1, 2023
jackiehanyang added a commit that referenced this pull request Sep 5, 2023
…ue (#1013)

* Revert "[backport to 2.x] Enforce DOCUMENT Replication for AD Indices (#949)"

This reverts commit 4b21068.

Signed-off-by: Jackie Han <[email protected]>

* upgrading commons-lang3 version to fix conflict issue (#1012)

* force commons-lang3 version to fix conflict issue

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from upstream version properties file

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from core

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from core

Signed-off-by: Jackie Han <[email protected]>

* upgrading commons-lang3 version to align with core

Signed-off-by: Jackie Han <[email protected]>

---------

Signed-off-by: Jackie Han <[email protected]>
(cherry picked from commit db456c2)

---------

Signed-off-by: Jackie Han <[email protected]>
jackiehanyang added a commit that referenced this pull request Sep 5, 2023
…sue (#1014)

* Revert "[backport to 2.x] Enforce DOCUMENT Replication for AD Indices (#949)"

This reverts commit 4b21068.

Signed-off-by: Jackie Han <[email protected]>

* upgrading commons-lang3 version to fix conflict issue (#1012)

* force commons-lang3 version to fix conflict issue

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from upstream version properties file

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from core

Signed-off-by: Jackie Han <[email protected]>

* getting commons-lang3 version from core

Signed-off-by: Jackie Han <[email protected]>

* upgrading commons-lang3 version to align with core

Signed-off-by: Jackie Han <[email protected]>

---------

Signed-off-by: Jackie Han <[email protected]>
(cherry picked from commit db456c2)

---------

Signed-off-by: Jackie Han <[email protected]>
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.

3 participants