Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…206851) # Backport This will backport the following commits from `main` to `8.17`: - [implements backoff delay in usage counters service (#206363)](#206363) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Christiane (Tina) Heiligers","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-15T18:42:44Z","message":"implements backoff delay in usage counters service (#206363)\n\nfix https://github.com/elastic/kibana/issues/192829\r\n\r\n## Summary\r\n\r\nUsage counters lose counts when there's a version conflict exception to\r\nincrement counters.\r\nATM, the service retries `incrementCounter` immediately on error, which\r\ncould also fail if another Kibana tries at the same time.\r\nUsing a backoff retry reduces the likelihood of a version conflict\r\nexception. \r\n\r\nThis PR replaces the retry with an exponential `backoffDelay` that will\r\nwait longer between retry attempts.\r\n\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\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n(https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7701)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"fd3b4ed590006212855c1a80994649eacbf41f31","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:all-open"],"title":"implements backoff delay in usage counters service","number":206363,"url":"https://github.com/elastic/kibana/pull/206363","mergeCommit":{"message":"implements backoff delay in usage counters service (#206363)\n\nfix https://github.com/elastic/kibana/issues/192829\r\n\r\n## Summary\r\n\r\nUsage counters lose counts when there's a version conflict exception to\r\nincrement counters.\r\nATM, the service retries `incrementCounter` immediately on error, which\r\ncould also fail if another Kibana tries at the same time.\r\nUsing a backoff retry reduces the likelihood of a version conflict\r\nexception. \r\n\r\nThis PR replaces the retry with an exponential `backoffDelay` that will\r\nwait longer between retry attempts.\r\n\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\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n(https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7701)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"fd3b4ed590006212855c1a80994649eacbf41f31"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206363","number":206363,"mergeCommit":{"message":"implements backoff delay in usage counters service (#206363)\n\nfix https://github.com/elastic/kibana/issues/192829\r\n\r\n## Summary\r\n\r\nUsage counters lose counts when there's a version conflict exception to\r\nincrement counters.\r\nATM, the service retries `incrementCounter` immediately on error, which\r\ncould also fail if another Kibana tries at the same time.\r\nUsing a backoff retry reduces the likelihood of a version conflict\r\nexception. \r\n\r\nThis PR replaces the retry with an exponential `backoffDelay` that will\r\nwait longer between retry attempts.\r\n\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\r\n- [x] [Flaky Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\r\nused on any tests changed\r\n(https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7701)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"fd3b4ed590006212855c1a80994649eacbf41f31"}}]}] BACKPORT--> Co-authored-by: Christiane (Tina) Heiligers <[email protected]>
- Loading branch information