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] Limit the number of source map artifacts #144963

Merged
merged 8 commits into from
Nov 12, 2022

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Nov 10, 2022

Introduced in #132799

This issue fixes a problem where listArtifacts will fetch all source maps artifacts without circuit breakers causing Kibana to crash for users with many source map artifacts.

TODO:

  • Add API tests for GET /api/apm/sourcemaps, 'POST /api/apm/sourcemaps', DELETE /api/apm/sourcemaps/{id}

@sorenlouv sorenlouv requested a review from a team as a code owner November 10, 2022 08:54
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Nov 10, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM.

@sorenlouv sorenlouv added the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Nov 11, 2022
@sorenlouv sorenlouv enabled auto-merge (squash) November 12, 2022 07:01
@sorenlouv sorenlouv merged commit 654d531 into elastic:main Nov 12, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

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

@sorenlouv sorenlouv deleted the fix-sourcemaps-oom branch November 12, 2022 14:29
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 12, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

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 Nov 12, 2022
# Backport

This will backport the following commits from `main` to `8.5`:
- [[APM] Limit the number of source map artifacts
(#144963)](#144963)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2022-11-12T14:25:55Z","message":"[APM]
Limit the number of source map artifacts
(#144963)","sha":"654d531efda087b5c297d4fef4a8b9aed0a318ca","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:APM","apm:test-plan-regression","backport:prev-minor","v8.6.0"],"number":144963,"url":"https://github.com/elastic/kibana/pull/144963","mergeCommit":{"message":"[APM]
Limit the number of source map artifacts
(#144963)","sha":"654d531efda087b5c297d4fef4a8b9aed0a318ca"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144963","number":144963,"mergeCommit":{"message":"[APM]
Limit the number of source map artifacts
(#144963)","sha":"654d531efda087b5c297d4fef4a8b9aed0a318ca"}}]}]
BACKPORT-->

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
@mistic mistic added v8.5.2 and removed v8.5.1 labels Nov 16, 2022
@mistic
Copy link
Member

mistic commented Nov 16, 2022

Changing v8.5.1 label into v8.5.2 as this PR didn't make into the build candidate.

@JohannesMahne
Copy link
Contributor

@mistic - do we know if this case will indeed make it to 8.5.2?

@JohannesMahne
Copy link
Contributor

Thanks @simitt for confirming the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:test-plan-regression backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:fix Team:APM All issues that need APM UI Team support v8.5.2 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants