Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cluster call responses that are missing source fields #118642

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

jportner
Copy link
Contributor

Resolves #118639.

Change usage from _source: 'true' to _source: true.

This is an unreleased regression that appears to have been caused by the recent upgrade of the elasticsearch-js client upgrade to the 8.0 version.

To test, you can:

  • Use es-archiver to save an archive and verify that the documents contain source fields
  • Add a console log message to the incrementCounter method of the saved objects repository and verify that the periodic calls to incrementCounter are getting a response that contains source fields

Change usage from `_source: 'true'` to `_source: true`.
@jportner jportner added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v8.1.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Nov 16, 2021
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Test Failures

  • [job] [logs] Default CI Group #4 / lens app lens heatmap should reflect stop colors change on the chart

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jportner jportner marked this pull request as ready for review November 16, 2021 04:04
@jportner jportner requested review from a team as code owners November 16, 2021 04:04
@jportner jportner merged commit 349434e into elastic:main Nov 16, 2021
@jportner jportner deleted the issue-118639-fix-source-fields-bug branch November 16, 2021 13:51
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 16, 2021
…8642)

Change usage from `_source: 'true'` to `_source: true`.
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

@jportner
Copy link
Contributor Author

Tomas also recommended our v7 usage from 'true' to true: #118639 (comment)

Seeing as we will be supporting the 7.16 branch for the foreseeable future, and this bug was not trivial to diagnose, I'll backport it to 7.16 as well.

kibanamachine added a commit that referenced this pull request Nov 16, 2021
…118698)

Change usage from `_source: 'true'` to `_source: true`.

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
dmlemeshko pushed a commit that referenced this pull request Nov 29, 2021
Change usage from `_source: 'true'` to `_source: true`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documents saved with es-archiver are missing source fields
5 participants