Hi, all.
We've updated our stack to version 6.4.0 and we're now seeing a weird new issue with Kibana's Discover app.
Steps to reproduce:
- Open Discover app, open any index (the document count doesn't seem to matter).
- Start adding fields from the "Available fields" panel.
- If you're not pausing for 2-3 seconds after every field then the following error is displayed via a standard Kibana popup: "Unable to write index pattern! Refresh the page to get the most up to date changes for this index pattern."
- The field appears in the main table, there are no further issues with it.
When the error is displayed, this message is written to the browser console:
"Possibly unhandled rejection: {"res":{},"body":{"message":"[doc][index-pattern:waslogs-*]: version conflict, current version [3162] is different than the one provided [3161]: [version_conflict_engine_exception] [doc][index-pattern:waslogs-*]: version conflict, current version [3162] is different than the one provided [3161], with { index_uuid=\"5-txIHCOSTGiHlQyo4Dz0A\" & shard=\"0\" & index=\".kibana-6\" }","statusCode":409,"error":"Conflict"}}"
Here is the full browser console output dump.
And here is what Kibana writes to its own log:
Aug 27 13:28:05 <hostname> kibana[2214]: {"type":"response","@timestamp":"2018-08-27T10:28:05Z","tags":[],"pid":2214,"method":"put","statusCode":409,"req":{"url":"/api/saved_objects/index-pattern/waslogs-*","method":"put","headers":{"host":"kibana","connection":"close","content-length":"10145","origin":"http://<Nginx balancer>","kbn-version":"6.4.0","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36","content-type":"application/json","accept":"*/*","referer":"http://<Nginx balancer>/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"<Nginx balancer>","userAgent":"<Nginx balancer>","referer":"http://<Nginx balancer>/app/kibana"},"res":{"statusCode":409,"responseTime":198,"contentLength":9},"message":"PUT /api/saved_objects/index-pattern/waslogs-* 409 198ms - 9.0B"}
It receives an HTTP 409 Conflict
response from Elasticsearch. I see the same status code in the Nginx load balancer access log.
Elasticsearch is completely silent when the error occurs.
I was able to reproduce this with a clean Kibana install (no plugins, latest 6.4.0 tarball from elastic.co) and a direct connection from the Kibana instance to one of our Elasticsearch nodes.
Recreating the index pattern didn't help.
We've never seen this before. It doesn't appear to affect anything at all but the error might seem somewhat confusing to our users.
Is anybody else getting the same errors after upgrading to 6.4.0?