Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport 39df8f3 from #1619

…arts if the index is already open (#1619)

* Index Reopen Call should not be sent when index replication task restarts if the index is already open

Signed-off-by: Mohit Kumar <[email protected]>

* CLOSED was not recognized hence changed the condition to !=OPEN

Signed-off-by: Mohit Kumar <[email protected]>

* Consolidated isIndexClosed check in a function and added UT

Signed-off-by: Mohit Kumar <[email protected]>

* Consolidated isIndexClosed check in a function and added UT

Signed-off-by: Mohit Kumar <[email protected]>

* Changed the isIndexClosed method from private to internal, which makes it accessible to tests in the same module without needing reflection

Signed-off-by: Mohit Kumar <[email protected]>

---------

Signed-off-by: Mohit Kumar <[email protected]>
Co-authored-by: Mohit Kumar <[email protected]>
(cherry picked from commit 39df8f3)
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.

2 participants