Skip to content

Conversation

@lantzen
Copy link
Contributor

@lantzen lantzen commented Mar 26, 2025

…stUsedProducer

Description

We have found that the lastUsedProducer field in org.apache.camel.support.cache.DefaultProducerCache may reference a stopped producer that case a java.util.concurrent.RejectedExecutionException if re-used after stop/start of a route where it is used.

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • ⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@davsclaus
Copy link
Contributor

Yes this would be good to backport to the LTS branches

@oscerd oscerd merged commit d81ef9a into apache:main Mar 28, 2025
5 checks passed
oscerd pushed a commit that referenced this pull request Mar 28, 2025
oscerd pushed a commit that referenced this pull request Mar 28, 2025
Croway pushed a commit to Croway/camel that referenced this pull request Jun 3, 2025
…stUsedProducer (apache#17582) (apache#2784)

Co-authored-by: lantzen <89805340+lantzen@users.noreply.github.com>
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.

3 participants