I downloaded latest release of ROR plugin (es + kibana pro) in version 1.21.0, where the issues should be mitigated. At least when I checked release notes - * Fix (KBN) multitenancy+reporting regression fix (for 7.6.x and earlier)
I deployed new version of ROR plugin, but the issues stayed the same - reporting doesn’t work. When I try to generate CSV report, job is added to the queue, nothing is visible via management/reporting and logs show the same messages:
{"type":"log","@timestamp":"2020-08-11T10:47:42Z","tags":["reporting","queue-job","info"],"pid":30761,"message":"Successfully queued job: kdptmg3u0nqhd6c3759ghrql"}
{"type":"response","@timestamp":"2020-08-11T10:47:42Z","tags":["api"],"pid":30761,"method":"post","statusCode":200,"req":{"url":"/api/reporting/generate/csv?jobParams=","method":"post","headers":{"host":"127.0.0.1:5601","dnt":"1","kbn-version":"7.5.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","content-type":"application/json","accept":"*/*","origin":"https://<domain>","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://<domain>/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","x-forwarded-for":"<ip-address>","x-forwarded-host":"<domain>","x-forwarded-server":"<domain>","connection":"Keep-Alive","content-length":"1435"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://<domain>/app/kibana"},"res":{"statusCode":200,"responseTime":99,"contentLength":9},"message":"POST /api/reporting/generate/csv?jobParams= 200 99ms - 9.0B"}
{"type":"log","@timestamp":"2020-08-11T10:47:44Z","tags":["reporting","esqueue","queue-worker","info"],"pid":30761,"message":"kdpt801t0nqhd6c3759l1ihk - Job marked as claimed: /.reporting-prod.kibana-2020.08.09/_doc/kdptmg3u0nqhd6c3759ghrql"}
{"type":"log","@timestamp":"2020-08-11T10:47:44Z","tags":["reporting","esqueue","queue-worker","info"],"pid":30761,"message":"kdpt801t0nqhd6c3759l1ihk - Starting job"}
{"type":"log","@timestamp":"2020-08-11T10:47:45Z","tags":["reporting","esqueue","queue-worker","info"],"pid":30761,"message":"kdpt801t0nqhd6c3759l1ihk - Job execution completed successfully"}
{"type":"log","@timestamp":"2020-08-11T10:47:45Z","tags":["reporting","esqueue","queue-worker","info"],"pid":30761,"message":"kdpt801t0nqhd6c3759l1ihk - Job data saved successfully: /.reporting-prod.kibana-2020.08.09/_doc/kdptmg3u0nqhd6c3759ghrql"}
{"type":"response","@timestamp":"2020-08-11T10:47:48Z","tags":[],"pid":30761,"method":"get","statusCode":200,"req":{"url":"/api/reporting/jobs/list?page=0&ids=kdptfnee0nqhd6c375759uuv%2Ckdptmg3u0nqhd6c3759ghrql","method":"get","headers":{"host":"127.0.0.1:5601","kbn-system-api":"true","dnt":"1","kbn-version":"7.5.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","content-type":"application/json","accept":"*/*","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://<domain>/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","x-forwarded-for":"<ip-address>","x-forwarded-host":"<domain>","x-forwarded-server":"<domain>","connection":"Keep-Alive"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1","referer":"https://<domain>/app/kibana"},"res":{"statusCode":200,"responseTime":9,"contentLength":9},"message":"GET /api/reporting/jobs/list?page=0&ids=kdptfnee0nqhd6c375759uuv%2Ckdptmg3u0nqhd6c3759ghrql 200 9ms - 9.0B"}
{"type":"log","@timestamp":"2020-08-11T10:47:48Z","tags":["reporting","esqueue","queue-worker","warning"],"pid":30761,"message":"kdpt801t0nqhd6c3759l1ihk - _claimPendingJobs encountered a version conflict on updating pending job kdptmg3u0nqhd6c3759ghrql: Error: [version_conflict_engine_exception] [kdptmg3u0nqhd6c3759ghrql]: version conflict, required seqNo [3], primary term [1]. current document has seqNo [5] and primary term [1], with { index_uuid=\"6rFVxvpuTgyS5qcMKhJLxQ\" & shard=\"0\" & index=\".reporting-prod.kibana-2020.08.09\" }\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)\n at IncomingMessage.emit (events.js:194:15)\n at endReadableNT (_stream_readable.js:1103:12)\n at process._tickCallback (internal/process/next_tick.js:63:19)"}
Can you please confirm that 1.21.0 version should fix this issues? I’m still on Elasticsearch version 7.5.2.