1
0
mirror of synced 2026-01-06 06:02:35 -05:00

cope with odd 404 errors on /_cat/indices (#31375)

This commit is contained in:
Peter Bengtsson
2022-10-03 20:38:32 +02:00
committed by GitHub
parent 4fe0c8c0d4
commit 0971a6ebf7
3 changed files with 69 additions and 4 deletions

View File

@@ -108,8 +108,11 @@ jobs:
- name: Check created indexes and aliases
run: |
curl --fail --retry-connrefused --retry 5 ${{ env.ELASTICSEARCH_URL }}/_cat/indices?v
curl --fail --retry-connrefused --retry 5 ${{ env.ELASTICSEARCH_URL }}/_cat/indices?v
# Not using `--fail` here because I've observed that it can fail
# with a rather cryptic 404 error when it should, if anything, be
# a 200 OK with a list of no indices.
curl --retry-connrefused --retry 5 ${{ env.ELASTICSEARCH_URL }}/_cat/indices?v
curl --retry-connrefused --retry 5 ${{ env.ELASTICSEARCH_URL }}/_cat/indices?v
- name: Send Slack notification if workflow fails
uses: someimportantcompany/github-actions-slack-message@f8d28715e7b8a4717047d23f48c39827cacad340