[8.x] Rollback to 3 parallel migrators (#194663) (#194679)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Rollback to 3 parallel migrators
(#194663)](https://github.com/elastic/kibana/pull/194663)

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

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-10-02T10:16:10Z","message":"Rollback
to 3 parallel migrators (#194663)\n\n## Summary\r\n\r\nAddress
https://github.com/elastic/kibana/issues/194490\r\nThis test used to
have 3 parallel migrators.\r\nI updated it to 4 during the `9.0.0`
migrations' tests upgrades.\r\nIt seems that it could be a bit too much
for CI.\r\nThis PR sets the value back to
3.","sha":"4e68c21feebcfa7bac83dddd700f46d517d0a60a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Feature:Migrations","backport:prev-minor"],"title":"Rollback
to 3 parallel
migrators","number":194663,"url":"https://github.com/elastic/kibana/pull/194663","mergeCommit":{"message":"Rollback
to 3 parallel migrators (#194663)\n\n## Summary\r\n\r\nAddress
https://github.com/elastic/kibana/issues/194490\r\nThis test used to
have 3 parallel migrators.\r\nI updated it to 4 during the `9.0.0`
migrations' tests upgrades.\r\nIt seems that it could be a bit too much
for CI.\r\nThis PR sets the value back to
3.","sha":"4e68c21feebcfa7bac83dddd700f46d517d0a60a"}},"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/194663","number":194663,"mergeCommit":{"message":"Rollback
to 3 parallel migrators (#194663)\n\n## Summary\r\n\r\nAddress
https://github.com/elastic/kibana/issues/194490\r\nThis test used to
have 3 parallel migrators.\r\nI updated it to 4 during the `9.0.0`
migrations' tests upgrades.\r\nIt seems that it could be a bit too much
for CI.\r\nThis PR sets the value back to
3.","sha":"4e68c21feebcfa7bac83dddd700f46d517d0a60a"}}]}] BACKPORT-->

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
This commit is contained in:
Kibana Machine 2024-10-02 21:51:07 +10:00 committed by GitHub
parent 0b748f0b36
commit 6c9c336dbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ import { delay, parseLogFile } from '../test_utils';
import '../jest_matchers';
import { expectDocumentsMigratedToHighestVersion } from '../kibana_migrator_test_kit.expect';
const PARALLEL_MIGRATORS = 4;
const PARALLEL_MIGRATORS = 3;
type Job<T> = () => Promise<T>;
const getLogFile = (node: number) => join(__dirname, `multiple_kb_nodes_${node}.log`);