Page MenuHomePhabricator

Sending events to `maps.tiles_change` stream is failing
Closed, ResolvedPublic

Description

After merging and deploying https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/730848 I tried to send a couple of test events to see if event stream works.
For all the requests, eventgate main returned 500 responses. Specifically

jgiannelos@maps2009:~$ curl -X POST -H 'Content-Type: application/json' -d '
> {
>     "$schema": "/maps/tiles_change/1.0.0",
>     "meta": {
>         "stream": "maps.tiles_change"
>     },
>     "changes": [
>         {
>             "tile": "15/0/0",
>             "state": "expired"
>         },
>         {
>             "tile": "15/1/2",
>             "state": "expired"
>         },
>         {
>             "tile": "15/0/3",
>             "state": "expired"
>         }
>     ]
> }
> ' https://eventgate-main.svc.codfw.wmnet:4492/v1/events | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100   608  100   375  43428  26785 --:--:-- --:--:-- --:--:-- 70214
{
  "invalid": [],
  "error": [
    {
      "status": "error",
      "event": {
        "$schema": "/maps/tiles_change/1.0.0",
        "meta": {
          "stream": "maps.tiles_change",
          "id": "9c61bc99-f840-4ba0-86bc-7d0293ffb925",
          "dt": "2021-10-21T11:49:08.253Z",
          "request_id": "957d5204-5825-4bb6-8d4a-b51b4950a07a"
        },
        "changes": [
          {
            "tile": "15/0/0",
            "state": "expired"
          },
          {
            "tile": "15/1/2",
            "state": "expired"
          },
          {
            "tile": "15/0/3",
            "state": "expired"
          }
        ]
      },
      "context": {
        "message": "event 9c61bc99-f840-4ba0-86bc-7d0293ffb925 of schema at /maps/tiles_change/1.0.0 destined to stream maps.tiles_change is not allowed in stream; maps.tiles_change is configured but does not have any settings."
      }
    }
  ]
}

Event Timeline

Ah right, sorry. eventgate-main only requests stream config on startup, so we need to just restart the service...will do...

Thanks, looks like its working now. I got some canary events and I also publish a couple of test events manually.