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

Handling exception in getAssignment method (#881) #930

Merged
merged 1 commit into from
May 31, 2023
Merged

Handling exception in getAssignment method (#881) #930

merged 1 commit into from
May 31, 2023

Conversation

nisgoel-amazon
Copy link
Contributor

@nisgoel-amazon nisgoel-amazon commented May 31, 2023

  • Handling exception in getAssignment method

Handling exception in getAssignment method

  • Adding UT for getAssignment Method

Description

getAssignment method is used to assign shard replication task via persistent task cluster service. In case of stale entries present in persistent tasks in cluster state when this method is trying to assign task it is not handled properly.

Most of the times stale entries are not present in cluster state as we are clearing them at the time of cancelling the replication task but if cancelling is failed by any reason then these entries can remain in the cluster state.

Issues Resolved

#880

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.

* Handling exception in getAssignment method

Handling exception in getAssignment method

Signed-off-by: Nishant Goel <[email protected]>

* Adding UT for getAssignment Method

Signed-off-by: Nishant Goel <[email protected]>

---------

Signed-off-by: Nishant Goel <[email protected]>
Signed-off-by: Nishant Goel <[email protected]>
@ankitkala ankitkala merged commit 7a981ae into opensearch-project:es_7.10 May 31, 2023
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