Claus Ibsen created CAMEL-26550:
-----------------------------------

             Summary: camel-grpc - with consumerStrategy=PROPAGATION and 
routeControlledStreamObserver=true the route cannot control the reply
                 Key: CAMEL-26550
                 URL: https://issues.apache.org/jira/browse/CAMEL-26550
             Project: Camel
          Issue Type: Bug
            Reporter: Claus Ibsen


Found while fixing CAMEL-26515 (PR #29112).

{{GrpcConsumer}} accepts {{consumerStrategy=PROPAGATION}} together with 
{{routeControlledStreamObserver=true}}. For client and bidi streaming calls, 
{{GrpcRequestPropagationStreamObserver}} (lines 41 and 61) never sets the 
{{grpcResponseObserver}} exchange property, and still sends the route body as 
the reply itself. So a route that uses the {{toRouteControlledStreamObserver}} 
producer fails (no response observer), and the reply is not controlled by the 
route.

The docs say to use {{DELEGATION}} for a route-controlled stream observer.

Options:
* reject the combination when the consumer starts, with a clear message 
pointing to DELEGATION (recommended), or
* support it: set the property and do not send the body in the propagation 
observer.

_Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to