Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Elasticsearch queries via kinto-elastic trigger ES 500 errors in Sentry #386

Open
peterbe opened this issue Mar 27, 2018 · 1 comment
Open

Comments

@peterbe
Copy link
Contributor

peterbe commented Mar 27, 2018

See https://sentry.prod.mozaws.net/operations/buildhub-prod/issues/753794/

This can happen from running a ES query like this:

echo '{
  "query": {
    "bool": {
      "must_not": {
        "regexp": {
          "target.version": ".*rc\d+"
        }
      },
      "filter": [{
        "term": {
          "target.channel": "release"
        }
      }, {
        "term": {
          "target.locale": "en-US"
        }
      }, {
        "term": {
          "source.product": "firefox"
        }
      }, {
        "term": {
          "target.os": "win"
        }
      }]
    }
  },
  "sort" : [{
    "build.id": "desc"
  }],
  "size": 1
}' | http POST https://buildhub.prod.mozaws.net/v1/buckets/build-hub/collections/releases/search

The output of that httpie query is actually 200 OK from the outside.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants