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

[Backport 2.x] Fix Duplicate Scheduling of Index Rollover in ADIndexManagement #1233

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport 744a24f from #1231.

ADIndexManagement inherits from IndexManagement, which implements LocalNodeClusterManagerListener, causing it to listen for master node changes. This listener schedules index rollover and deletion. However, ADIndexManagement was inadvertently listening to the cluster manager event again, leading to duplicate scheduling of these tasks.

This commit removes the redundant listener call in ADIndexManagement, ensuring that index rollover and deletion are scheduled only once per interval.

Testing:

Verified that index rollover and deletion now execute once per interval as expected.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit 744a24f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@kaituo
Copy link
Collaborator

kaituo commented Jun 10, 2024

windows CI failed due to

  • What went wrong:
    Could not determine the dependencies of task ':thirdPartyAudit'.

Could not resolve all files for configuration ':resolveableCompileOnly'.
Could not resolve org.opensearch.plugin:opensearch-scripting-painless-spi:2.15.0-SNAPSHOT.
Required by:
project :
> Could not resolve org.opensearch.plugin:opensearch-scripting-painless-spi:2.15.0-SNAPSHOT.
> Unable to load Maven meta-data from https://ci.opensearch.org/ci/dbc/snapshots/lucene/org/opensearch/plugin/opensearch-scripting-painless-spi/2.15.0-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://ci.opensearch.org/ci/dbc/snapshots/lucene/org/opensearch/plugin/opensearch-scripting-painless-spi/2.15.0-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

maybe because infra team build has issues. Will leave as it is.

@kaituo kaituo merged commit 71d47e4 into 2.x Jun 10, 2024
18 of 24 checks passed
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.

1 participant