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

Fix RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty. #8704

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Jul 14, 2023

Description

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type on primary shards.

Related Issues

resolves #8699

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
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #8704 (ca80665) into main (6a19660) will decrease coverage by 0.09%.
The diff coverage is 57.14%.

@@             Coverage Diff              @@
##               main    #8704      +/-   ##
============================================
- Coverage     70.88%   70.79%   -0.09%     
+ Complexity    57196    57095     -101     
============================================
  Files          4771     4771              
  Lines        270312   270320       +8     
  Branches      39505    39509       +4     
============================================
- Hits         191609   191380     -229     
- Misses        62600    62817     +217     
- Partials      16103    16123      +20     
Impacted Files Coverage Δ
...earch/action/search/AbstractSearchAsyncAction.java 77.61% <25.00%> (-0.92%) ⬇️
...ices/replication/RemoteStoreReplicationSource.java 94.28% <100.00%> (+0.73%) ⬆️

... and 471 files with indirect coverage changes

@dreamer-89 dreamer-89 added the backport 2.x Backport to 2.x branch label Jul 14, 2023
@dreamer-89
Copy link
Member

@mch2 : I am not sure what codecov is complaining about, probably can be ignored.

@mch2 mch2 merged commit 675acdb into opensearch-project:main Jul 14, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-8704-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 675acdb4b92d862ccec3ebd10f390f333d81291f
# Push it to GitHub
git push --set-upstream origin backport/backport-8704-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-8704-to-2.x.

mch2 added a commit to mch2/OpenSearch that referenced this pull request Jul 14, 2023
…opensearch-project#8704)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
(cherry picked from commit 675acdb)
@mch2 mch2 deleted the 8699 branch July 14, 2023 21:55
mch2 added a commit that referenced this pull request Jul 14, 2023
…#8704) (#8705)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
(cherry picked from commit 675acdb)
@andrross andrross mentioned this pull request Jul 17, 2023
6 tasks
suranjay pushed a commit to suranjay/OpenSearch that referenced this pull request Jul 18, 2023
…opensearch-project#8704)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
baba-devv pushed a commit to baba-devv/OpenSearch that referenced this pull request Jul 29, 2023
…opensearch-project#8704)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
…opensearch-project#8704)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…opensearch-project#8704)

This change fixes RemoteStoreReplicationSourceTests.testGetCheckpointMetadataEmpty by properly setting replication type
for on primary shards.

Signed-off-by: Marc Handalian <handalm@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
3 participants