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

[Bug]: gradle-check alias used in OpenSearchMetricsQuery does not query the latest indices #493

Closed
prudhvigodithi opened this issue Sep 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@prudhvigodithi
Copy link
Collaborator

prudhvigodithi commented Sep 6, 2024

Describe the bug

The library OpenSearchMetricsQuery.groovy which is used to query the gradle check indices from metrics cluster does not query the latest created gradle-check-* indices. The library publishGradleCheckTestResults.groovy creates index in specific date format example as gradle-check-\$MONTH_YEAR, the alias gradle-check used in in OpenSearchMetricsQuery does have the latest indices created from gradle-check-\$MONTH_YEAR hence when used the alias gradle-check does not give the latest results.

To reproduce

The command GET /_alias/gradle-check does not have all the indices part of GET /gradle-check-*

Expected behavior

POST /_aliases
{
  "actions": [
    {
      "add": {
        "index": "gradle-check-*",
        "alias": "gradle-check"
      }
    }
  ]
}

Screenshots

If applicable, add screenshots to help explain your problem.

Host / Environment

No response

Additional context

The INDEX_MAPPING used in publishGradleCheckTestResults.groovy should have the following added to ensure the new index created is part of the gradle-check alias.

    "aliases": {
      "gradle-check": {}
    }

Relevant log output

No response

@prudhvigodithi prudhvigodithi added bug Something isn't working untriaged labels Sep 6, 2024
@prudhvigodithi prudhvigodithi changed the title [Bug]: gradle-check alias used in OpenSearchMetricsQuery is not querying up latest indices [Bug]: gradle-check alias used in OpenSearchMetricsQuery does not query the latest indices Sep 6, 2024
@prudhvigodithi
Copy link
Collaborator Author

[Triage]
I will take this up to add the alias gradke-check in the index mapping part of publishGradleCheckTestResults.

@prudhvigodithi
Copy link
Collaborator Author

Closing this as the GET gradle-check-*/_alias now targets all the new indices created in past and future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant