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

[APM] Fix labels.served_from_cache type #188836

Merged

Conversation

crespocarlos
Copy link
Contributor

@crespocarlos crespocarlos commented Jul 22, 2024

fixes #176425
fixes #176544

Summary

The problem happens intermittently, I've managed to reproduce it a few times though. I suspect that since the es_archive 8.0.0 does not have a type definition for the label.served_from_cache field, it leaves ES to determine what's the appropriate type, therefore causing ingestion to sometimes fail.

The apm_8.0.0 has a type definition for this field for transaction index https://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0/mappings.json#L18824, so I followed the same configuration.

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@crespocarlos
Copy link
Contributor Author

/ci

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#6609

[✅] test/api_integration/config.js: 25/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#6610

[✅] x-pack/test/apm_api_integration/trial/config.ts: 25/25 tests passed.

see run history

@crespocarlos crespocarlos marked this pull request as ready for review July 23, 2024 12:25
@crespocarlos crespocarlos requested a review from a team as a code owner July 23, 2024 12:25
@crespocarlos crespocarlos added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.16.0 labels Jul 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jul 23, 2024
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that!

@crespocarlos crespocarlos merged commit 850aa69 into elastic:main Jul 24, 2024
21 checks passed
@crespocarlos crespocarlos deleted the 176425-adjust-es_archive-mapping branch July 24, 2024 12:08
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 24, 2024
fixes [elastic#176425](elastic#176425)
fixes [elastic#176544](elastic#176544)

## Summary

The problem happens intermittently, I've managed to reproduce it a few
times though. I suspect that since the es_archive `8.0.0` does not have
a type definition for the `label.served_from_cache` field, it leaves ES
to determine what's the appropriate type, therefore causing ingestion to
sometimes fail.

The `apm_8.0.0` has a type definition for this field for `transaction`
index
https://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0/mappings.json#L18824,
so I followed the same configuration.

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 850aa69)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 24, 2024
…189061)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[APM] Fix &#x60;labels.served_from_cache&#x60; type
(#188836)](#188836)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-24T12:08:52Z","message":"[APM]
Fix `labels.served_from_cache` type (#188836)\n\nfixes
[#176425](https://github.com/elastic/kibana/issues/176425)\r\nfixes
[#176544](https://github.com/elastic/kibana/issues/176544)\r\n\r\n##
Summary\r\n\r\nThe problem happens intermittently, I've managed to
reproduce it a few\r\ntimes though. I suspect that since the es_archive
`8.0.0` does not have\r\na type definition for the
`label.served_from_cache` field, it leaves ES\r\nto determine what's the
appropriate type, therefore causing ingestion to\r\nsometimes
fail.\r\n\r\nThe `apm_8.0.0` has a type definition for this field for
`transaction`\r\nindex\r\nhttps://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0/mappings.json#L18824,\r\nso
I followed the same configuration.\r\n\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"850aa6964898adbe4659a748b9b4ebc59e54366b","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[APM]
Fix `labels.served_from_cache`
type","number":188836,"url":"https://github.com/elastic/kibana/pull/188836","mergeCommit":{"message":"[APM]
Fix `labels.served_from_cache` type (#188836)\n\nfixes
[#176425](https://github.com/elastic/kibana/issues/176425)\r\nfixes
[#176544](https://github.com/elastic/kibana/issues/176544)\r\n\r\n##
Summary\r\n\r\nThe problem happens intermittently, I've managed to
reproduce it a few\r\ntimes though. I suspect that since the es_archive
`8.0.0` does not have\r\na type definition for the
`label.served_from_cache` field, it leaves ES\r\nto determine what's the
appropriate type, therefore causing ingestion to\r\nsometimes
fail.\r\n\r\nThe `apm_8.0.0` has a type definition for this field for
`transaction`\r\nindex\r\nhttps://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0/mappings.json#L18824,\r\nso
I followed the same configuration.\r\n\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"850aa6964898adbe4659a748b9b4ebc59e54366b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188836","number":188836,"mergeCommit":{"message":"[APM]
Fix `labels.served_from_cache` type (#188836)\n\nfixes
[#176425](https://github.com/elastic/kibana/issues/176425)\r\nfixes
[#176544](https://github.com/elastic/kibana/issues/176544)\r\n\r\n##
Summary\r\n\r\nThe problem happens intermittently, I've managed to
reproduce it a few\r\ntimes though. I suspect that since the es_archive
`8.0.0` does not have\r\na type definition for the
`label.served_from_cache` field, it leaves ES\r\nto determine what's the
appropriate type, therefore causing ingestion to\r\nsometimes
fail.\r\n\r\nThe `apm_8.0.0` has a type definition for this field for
`transaction`\r\nindex\r\nhttps://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/common/fixtures/es_archiver/apm_8.0.0/mappings.json#L18824,\r\nso
I followed the same configuration.\r\n\r\nCo-authored-by: Elastic
Machine
<[email protected]>","sha":"850aa6964898adbe4659a748b9b4ebc59e54366b"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.15.0 v8.16.0
Projects
None yet
6 participants