ammachado commented on PR #23652: URL: https://github.com/apache/camel/pull/23652#issuecomment-4640671153
Root cause analysis for `NatsProducerReplyToIT` and `NatsConsumerWithRedeliveryIT` failures _Claude Code on behalf of Adriano Machado_ Both tests were broken by commit `76479634bf35`(`CAMEL-23676: camel-nats - Only send reply when exchange pattern is InOut`), which is in the common ancestor of this branch and main. That commit changed `NatsConsumer` to only publish a reply to `msg.getReplyTo()` when `exchange.getPattern().isOutCapable()`. Since `NatsEndpoint` defaults to `InOnly`, consumer exchanges are `InOnly` by default and the reply is never published unless the endpoint URI explicitly sets `exchangePattern=InOut`. Both failing tests use `template.requestBody(...)`, which creates an `InOut` exchange on the producer side. The NATS producer therefore calls `connection.request()`, attaching a reply-to inbox to the message. The consumer receives the message, but because its exchange is `InOnly`, the `isOutCapable()` check fails and the reply is never sent. The producer then blocks until the 20-second `requestTimeout` fires, causing the test to fail with an `ExchangeTimedOutException`. These issues are addressed by PR #23811. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
