Dhairya-007 opened a new pull request, #29979:
URL: https://github.com/apache/camel/pull/29979

   ## Problem
   
   ```java
   @Metadata(label = "producer", description = "Name of the file in azure data 
lake on which operation is to be performed.",
             javaType = "String")
   public static final String FILE_NAME = HEADER_PREFIX + "FileName";
   ```
   
   The consumer puts the file name on every exchange it creates, at the end of 
`createExchangeFromFile`:
   
   ```java
   getEndpoint().setResponseOnExchange(response, exchange);
   
   exchange.getIn().setHeader(DataLakeConstants.FILE_NAME, fileName);
   return exchange;
   ```
   
   The header is nevertheless labelled `producer`, and its description covers 
only that direction - the name of the file "on which operation is to be 
performed" - so the consumer's header table says nothing about which file an 
exchange came from, which is the one thing a route polling a file system needs 
in order to tell the exchanges apart.
   
   ## Fix
   
   Drop the label so the header lands in `common`, and describe both directions:
   
   > (producer) Name of the file in azure data lake on which operation is to be 
performed. (consumer) Name of the file that was consumed.
   
   No header name, type or behaviour changes. The regenerated 
`azure-storage-datalake.json` files are included; header entries keep their 
declaration order, so only this one line changes in each.


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

  • [PR] camel-azure-storage-data... Dhairya-007 (via GitHub) via commits

Reply via email to