Skip to content

fix: drain all producer queues in SolaceIO publishResults, not just the current bundle's producer [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #39686

Open
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix-solaceio-publish-all-producers
Open

fix: drain all producer queues in SolaceIO publishResults, not just the current bundle's producer [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]#39686
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix-solaceio-publish-all-producers

Conversation

@waterWang

Copy link
Copy Markdown

Description

Fixes #39588

Problem: When multiple producers are configured in SolaceIO write, publishResults()`` only polls the PublishedResultsQueue` of the current bundle's producer. Messages published by other producers in the same or previous bundles are never emitted to the downstream transform.

Root cause: publishResults() called solaceSessionServiceWithProducer() which returns the session for currentBundleProducerIndex only. Queues of other producers (0 to producersMapCardinality-1) were never polled.

Fix: Iterate over all producer indices and drain each queue, so publish results from all producers are emitted. This matches the workaround described in the issue.

Wallet: fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT

…t bundle's producer

Fixes apache#39588

When multiple producers are configured, publishResults() only polled the
current bundle producer's queue, losing results from other producers.
Now it iterates over all producers and drains each queue.
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

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]: SolaceIO write transform does not output all publish results

1 participant