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

Doing stop after shard tasks are up . #153

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Sep 16, 2021

Signed-off-by: Gaurav Bafna [email protected]

Description

Fixing integ tests which are broken due to #152

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.

Comment on lines 87 to 88
followerClient.waitForReplicationStart(leaderIndexName, waitForShardTask)
followerClient.waitForReplicationStart(leaderIndexNameNew, waitForShardTask)
Copy link
Collaborator

Choose a reason for hiding this comment

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

These are probably better added in the try block. That way we also clearly ensure replication was started as well.

Copy link
Member

@ankitkala ankitkala Sep 16, 2021

Choose a reason for hiding this comment

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

We can probably keep it after leaderIndexNameNew is created on the leader side.
Same feedback for other tests as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done.

@gbbafna gbbafna merged commit bdd73bc into opensearch-project:main Sep 16, 2021
gbbafna added a commit to gbbafna/cross-cluster-replication that referenced this pull request Sep 17, 2021
gbbafna added a commit that referenced this pull request Sep 17, 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.

3 participants