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

Force DOCUMENT replication on lock index #417

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Force DOCUMENT replication on lock index #417

merged 3 commits into from
Jul 10, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jul 10, 2023

Description

  • Adds an integration test to test that the lock was added to the index.
  • As a temporary workaround, forces the lock index to use DOCUMENT replication until SegRep supports Get by ID

Issues Resolved

In support of #407

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

@codecov
Copy link

codecov bot commented Jul 10, 2023

Codecov Report

Merging #417 (ab9e5bf) into main (19a0c77) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #417   +/-   ##
=========================================
  Coverage     28.77%   28.77%           
  Complexity       97       97           
=========================================
  Files            22       22           
  Lines          1178     1178           
  Branches        109      109           
=========================================
  Hits            339      339           
  Misses          818      818           
  Partials         21       21           

Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @dbwiddis for this

@vibrantvarun vibrantvarun merged commit 877b425 into opensearch-project:main Jul 10, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 10, 2023
* Force DOCUMENT replication on lock index

Signed-off-by: Daniel Widdis <[email protected]>

* Test releasing lock to avoid any query cache issues

Signed-off-by: Daniel Widdis <[email protected]>

* Restore original test config

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 877b425)
joshpalis pushed a commit that referenced this pull request Jul 10, 2023
* Force DOCUMENT replication on lock index

Signed-off-by: Daniel Widdis <[email protected]>

* Test releasing lock to avoid any query cache issues

Signed-off-by: Daniel Widdis <[email protected]>

* Restore original test config

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 877b425)

Co-authored-by: Daniel Widdis <[email protected]>
kaituo added a commit to kaituo/anomaly-detection-1 that referenced this pull request Jul 11, 2023
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 added a commit to opensearch-project/anomaly-detection that referenced this pull request Jul 11, 2023
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]>
@dbwiddis dbwiddis deleted the docrep branch July 12, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants