oscerd opened a new pull request, #25220:
URL: https://github.com/apache/camel/pull/25220

   Child of CAMEL-24261 (completing CAMEL-23462 across the AWS2 producers).
   
   ## Problem
   
   With `pojoRequest=true`, both timestream producers only acted when the body 
was
   the matching request type; any other body fell through the `instanceof` with 
no
   `else`, so no AWS call was made, no response was set, and the original body 
was
   returned with no error. This covers **26** operations:
   
   * `Timestream2WriteProducer` — 16 (databases, tables, batch-load tasks, 
writeRecords, describeEndpoints)
   * `Timestream2QueryProducer` — 10 (scheduled queries, prepareQuery, query, 
cancelQuery, describeEndpoints)
   
   ## Fix
   
   Each branch now throws `IllegalArgumentException` naming the required request
   type, e.g. `"writeRecords operation requires WriteRecordsRequest in POJO 
mode"`.
   
   ## Tests
   
   A `@ParameterizedTest` in each producer's test class covers every operation,
   sending a wrong-typed body to `pojoRequest=true` routes and asserting each
   message. Verified to fail (silent no-op) before the fix — with `writeRecords`
   (write) and `cancelQuery` (query) elses removed, exactly those cases report
   "Expecting code to raise a throwable". Write 33/33, Query 21/21 green. 
Hermetic
   unit tests, region-free — no localstack or real AWS.
   
   ## Docs / backport
   
   The shared 4.22 upgrade-guide entry was added with CAMEL-24263. Main only, 
matching
   the CAMEL-23462 precedent (behaviour change, shipped in a minor, not 
backported).
   
   ---
   _Claude Code on behalf of oscerd_


-- 
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]

Reply via email to