Skip to content

[Content Connectors] Fix race condition error for task registration of Agentless connectors infra service#227560

Merged
YulNaumenko merged 4 commits intoelastic:mainfrom
YulNaumenko:content-connectors-task-race-condition-fix
Jul 11, 2025
Merged

[Content Connectors] Fix race condition error for task registration of Agentless connectors infra service#227560
YulNaumenko merged 4 commits intoelastic:mainfrom
YulNaumenko:content-connectors-task-race-condition-fix

Conversation

@YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Jul 11, 2025

This PR fixing Content connectors task failing to schedule with error: Error scheduling search:agentless-connectors-manager-task...

Replaced plugin setup logic dependent to the start services with the factory.

Serverless:

Screenshot 2025-07-11 at 1 04 05 PM

ESS:

Screenshot 2025-07-11 at 1 06 31 PM

@YulNaumenko YulNaumenko self-assigned this Jul 11, 2025
@YulNaumenko YulNaumenko added the bug Fixes for quality problems that affect the customer experience label Jul 11, 2025
@YulNaumenko YulNaumenko requested a review from a team as a code owner July 11, 2025 04:23
@YulNaumenko YulNaumenko added release_note:skip Skip the PR/issue when compiling release notes ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment ci:build-serverless-image ci:project-deploy-security Create a Security Serverless Project 9.1 candidate v9.1.0 backport:prev-minor backport:version Backport to applied version labels labels Jul 11, 2025
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 11, 2025

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @YulNaumenko

@YulNaumenko YulNaumenko merged commit 8040842 into elastic:main Jul 11, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.1

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

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2025
…f Agentless connectors infra service (elastic#227560)

This PR fixing Content connectors task failing to schedule with error:
`Error scheduling search:agentless-connectors-manager-task...`

Replaced plugin setup logic dependent to the start services with the
factory.

Serverless:

<img width="2148" height="962" alt="Screenshot 2025-07-11 at 1 04 05 PM"
src="https://github.com/user-attachments/assets/c5b32502-623f-4590-b959-d62c1dde8933"
/>

ESS:

<img width="1694" height="978" alt="Screenshot 2025-07-11 at 1 06 31 PM"
src="https://github.com/user-attachments/assets/86b0b596-2547-4156-9231-5f8109a5e6be"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8040842)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.1

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 11, 2025
…tion of Agentless connectors infra service (#227560) (#227725)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Content Connectors] Fix race condition error for task registration
of Agentless connectors infra service
(#227560)](#227560)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Yuliia
Naumenko","email":"jo.naumenko@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T21:26:29Z","message":"[Content
Connectors] Fix race condition error for task registration of Agentless
connectors infra service (#227560)\n\nThis PR fixing Content connectors
task failing to schedule with error:\n`Error scheduling
search:agentless-connectors-manager-task...`\n\nReplaced plugin setup
logic dependent to the start services with
the\nfactory.\n\nServerless:\n\n<img width=\"2148\" height=\"962\"
alt=\"Screenshot 2025-07-11 at 1 04
05 PM\"\nsrc=\"https://github.com/user-attachments/assets/c5b32502-623f-4590-b959-d62c1dde8933\"\n/>\n\nESS:\n\n<img
width=\"1694\" height=\"978\" alt=\"Screenshot 2025-07-11 at 1 06
31 PM\"\nsrc=\"https://github.com/user-attachments/assets/86b0b596-2547-4156-9231-5f8109a5e6be\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8040842ae2e1962f86ad12b5b5b44106547db02c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","backport:prev-minor","ci:cloud-deploy","ci:cloud-redeploy","ci:build-serverless-image","ci:project-deploy-security","backport:version","9.1
candidate","v9.1.0","v9.2.0"],"title":"[Content Connectors] Fix race
condition error for task registration of Agentless connectors infra
service","number":227560,"url":"https://github.com/elastic/kibana/pull/227560","mergeCommit":{"message":"[Content
Connectors] Fix race condition error for task registration of Agentless
connectors infra service (#227560)\n\nThis PR fixing Content connectors
task failing to schedule with error:\n`Error scheduling
search:agentless-connectors-manager-task...`\n\nReplaced plugin setup
logic dependent to the start services with
the\nfactory.\n\nServerless:\n\n<img width=\"2148\" height=\"962\"
alt=\"Screenshot 2025-07-11 at 1 04
05 PM\"\nsrc=\"https://github.com/user-attachments/assets/c5b32502-623f-4590-b959-d62c1dde8933\"\n/>\n\nESS:\n\n<img
width=\"1694\" height=\"978\" alt=\"Screenshot 2025-07-11 at 1 06
31 PM\"\nsrc=\"https://github.com/user-attachments/assets/86b0b596-2547-4156-9231-5f8109a5e6be\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8040842ae2e1962f86ad12b5b5b44106547db02c"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227560","number":227560,"mergeCommit":{"message":"[Content
Connectors] Fix race condition error for task registration of Agentless
connectors infra service (#227560)\n\nThis PR fixing Content connectors
task failing to schedule with error:\n`Error scheduling
search:agentless-connectors-manager-task...`\n\nReplaced plugin setup
logic dependent to the start services with
the\nfactory.\n\nServerless:\n\n<img width=\"2148\" height=\"962\"
alt=\"Screenshot 2025-07-11 at 1 04
05 PM\"\nsrc=\"https://github.com/user-attachments/assets/c5b32502-623f-4590-b959-d62c1dde8933\"\n/>\n\nESS:\n\n<img
width=\"1694\" height=\"978\" alt=\"Screenshot 2025-07-11 at 1 06
31 PM\"\nsrc=\"https://github.com/user-attachments/assets/86b0b596-2547-4156-9231-5f8109a5e6be\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8040842ae2e1962f86ad12b5b5b44106547db02c"}}]}]
BACKPORT-->

Co-authored-by: Yuliia Naumenko <jo.naumenko@gmail.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…f Agentless connectors infra service (elastic#227560)

This PR fixing Content connectors task failing to schedule with error:
`Error scheduling search:agentless-connectors-manager-task...`

Replaced plugin setup logic dependent to the start services with the
factory.

Serverless:

<img width="2148" height="962" alt="Screenshot 2025-07-11 at 1 04 05 PM"
src="https://github.com/user-attachments/assets/c5b32502-623f-4590-b959-d62c1dde8933"
/>

ESS:

<img width="1694" height="978" alt="Screenshot 2025-07-11 at 1 06 31 PM"
src="https://github.com/user-attachments/assets/86b0b596-2547-4156-9231-5f8109a5e6be"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

9.1 candidate backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience ci:build-serverless-image ci:cloud-deploy Create or update a Cloud deployment ci:cloud-redeploy Always create a new Cloud deployment ci:project-deploy-security Create a Security Serverless Project release_note:skip Skip the PR/issue when compiling release notes v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants