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

[UA] Remove noisey warn when deleting from .tasks #204720

Merged
merged 6 commits into from
Dec 18, 2024

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Dec 18, 2024

Summary

Reduce the number of warn logs reindexing will create due to failed attempts to delete from .tasks. In this PR we only log for responses that do not have status code 403 or 401.

Checklist

@jloleysens jloleysens added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:skip Skip the PR/issue when compiling release notes Feature:Upgrade Assistant v9.0.0 backport:version Backport to applied version labels v8.18.0 v8.17.1 labels Dec 18, 2024
@jloleysens jloleysens self-assigned this Dec 18, 2024
@jloleysens jloleysens requested a review from a team as a code owner December 18, 2024 11:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@jloleysens jloleysens enabled auto-merge (squash) December 18, 2024 11:17
@jloleysens jloleysens merged commit ff3a600 into elastic:main Dec 18, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/12393733694

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @jloleysens

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 18, 2024
## Summary

Reduce the number of `warn` logs reindexing will create due to failed
attempts to delete from `.tasks`. In this PR we only log for responses
that do not have status code 403 or 401.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit ff3a600)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 18, 2024
## Summary

Reduce the number of `warn` logs reindexing will create due to failed
attempts to delete from `.tasks`. In this PR we only log for responses
that do not have status code 403 or 401.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit ff3a600)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
8.x

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 Dec 18, 2024
…204720) (#204758)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[UA] Remove noisey warn when deleting from `.tasks`
(#204720)](#204720)

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

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-18T13:14:57Z","message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Feature:Upgrade
Assistant","v9.0.0","backport:version","v8.18.0","v8.17.1"],"title":"[UA]
Remove noisey warn when deleting from
`.tasks`","number":204720,"url":"https://github.com/elastic/kibana/pull/204720","mergeCommit":{"message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204720","number":204720,"mergeCommit":{"message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <[email protected]>
@jloleysens jloleysens deleted the ua/remove-noisey-warn branch December 18, 2024 15:07
kibanamachine added a commit that referenced this pull request Dec 18, 2024
…204720) (#204759)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[UA] Remove noisey warn when deleting from &#x60;.tasks&#x60;
(#204720)](#204720)

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

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-18T13:14:57Z","message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Feature:Upgrade
Assistant","v9.0.0","backport:version","v8.18.0","v8.17.1"],"title":"[UA]
Remove noisey warn when deleting from
`.tasks`","number":204720,"url":"https://github.com/elastic/kibana/pull/204720","mergeCommit":{"message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204720","number":204720,"mergeCommit":{"message":"[UA]
Remove noisey warn when deleting from `.tasks` (#204720)\n\n##
Summary\r\n\r\nReduce the number of `warn` logs reindexing will create
due to failed\r\nattempts to delete from `.tasks`. In this PR we only
log for responses\r\nthat do not have status code 403 or
401.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"ff3a600d5eca300c769f67ce144364b5de3a2409"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <[email protected]>
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
## Summary

Reduce the number of `warn` logs reindexing will create due to failed
attempts to delete from `.tasks`. In this PR we only log for responses
that do not have status code 403 or 401.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
benakansara pushed a commit to benakansara/kibana that referenced this pull request Jan 2, 2025
## Summary

Reduce the number of `warn` logs reindexing will create due to failed
attempts to delete from `.tasks`. In this PR we only log for responses
that do not have status code 403 or 401.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:Upgrade Assistant release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.17.1 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants