Skip to content

fix(target-analysis): handle subscription on non-eventloop executor #962

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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

andrewazores
Copy link
Member

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #950
Based on #949
Depends on #949

Description of the change:

Prevents a hang (apparent deadlock) that results from the snapshot creation Uni subscription being handled by the default Quarkus/Vert.x eventloop thread. Shuffling this work off to the default executor frees up the event loop and keeps things moving.

How to manually test:

  1. Check out and build PR
  2. ./smoketest.bash -O -t quarkus-cryostat-agent
  3. When ready, open UI. Select http:// Quarkus/Cryostat Agent testing application
  4. Go to Flight Recorder > Capture > Recordings
  5. Click the Analyze toolbar button, then the process automation icon in the top right corner
  6. Some notifications about snapshot creation and archival should appear, and the automated analysis result should appear in the panel

@andrewazores andrewazores requested a review from a team as a code owner June 30, 2025 21:27
@github-actions github-actions bot added the needs-triage Needs thorough attention from code reviewers label Jun 30, 2025
Copy link

This PR/issue depends on:

@andrewazores andrewazores removed the needs-triage Needs thorough attention from code reviewers label Jun 30, 2025
@andrewazores andrewazores requested a review from a team June 30, 2025 21:28
@andrewazores
Copy link
Member Author

/build_test

Copy link

Workflow started at 6/30/2025, 5:28:22 PM. View Actions Run.

Copy link

No OpenAPI schema changes detected.

Copy link

No GraphQL schema changes detected.

Copy link

CI build and push: At least one test failed ❌
https://github.com/cryostatio/cryostat/actions/runs/15984069406

@andrewazores
Copy link
Member Author

Failure looks like the typical one that should be fixed by #961 .

@andrewazores andrewazores force-pushed the target-analysis-agent-2 branch from 872674e to b089f1d Compare July 7, 2025 17:24
@andrewazores
Copy link
Member Author

@Josh-Matsuoka have you also reviewed the changes in #949 which this is based on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Target analysis fails when target is an HTTP Agent
2 participants