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

   # Description
   
   Fixes [CAMEL-28123](https://issues.apache.org/jira/browse/CAMEL-28123).
   
   ## Summary
   
   After a failed call, a request ID or status code could still come from an 
earlier call. The producers now remove these values at the start of `process`, 
before any check. So a producer that fails now leaves none of them, and 
`MNSProducer.deleteMessage` never leaves a request ID.
   
   - The producers of `alibaba-eventbridge`, `alibaba-fc`, `alibaba-kms`, 
`alibaba-ots`, `alibaba-sls` and `alibaba-sms` remove their request ID header.
   - `FCProducer` and `AlibabaSlsProducer` also remove their status code 
header, and `MNSProducer` removes the `CamelAlibabaMnsRequestId` exchange 
property.
   - `FCProducer.getFunction` sets `CamelAlibabaFcRequestId` when the response 
has the `x-fc-request-id` header.
   - The texts of the request ID and status code headers say that the producer 
removes and sets them.
   - The upgrade guide has a section on it.
   
   ### Why `MNSProducer` keeps the message ID and MD5 headers
   
   `MNSConsumer` sets the same two headers for a received message. So a route 
that sends a received message keeps them when the send fails.
   
   ## Tests
   
   - Seven new test classes check with a mocked client that a failed call 
removes the values of an earlier call.
   - `FCResponseHeadersTest` also checks that `getFunction` sets the request 
ID, and all 8 new tests failed before the change.
   - The seven module builds ran 191 tests, none of them skipped, with no 
failure.
   - The catalog build ran 156 tests of `CamelCatalogTest`, none of them 
skipped, with no failure.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran `mvn clean install -Dquickly -DskipTests` on the parent commit, 
and resumed it from camel-kserve with `-Dgrpc-version=1.85.1`. Then I ran `mvn 
install -nsu` in seven modules, catalog/camel-catalog 
(`-Dtest=CamelCatalogTest`) and both DSLs (`-DskipTests`), and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of saravanakumar1987_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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