Dhairya-007 opened a new pull request, #29978:
URL: https://github.com/apache/camel/pull/29978
## Problem
```java
@Metadata(label = "producer",
description = "(Operations related to blob) Override/set the blob
name on the exchange headers.",
javaType = "String")
public static final String BLOB_NAME = HEADER_PREFIX + "BlobName";
```
The consumer puts the blob name on every exchange it creates, at the end of
`createExchangeFromBlob`:
```java
getEndpoint().setResponseOnExchange(response, exchange);
exchange.getIn().setHeader(BlobConstants.BLOB_NAME, blobName);
return exchange;
```
and reads it back in `releaseNotProcessed` and the on-completion paths, to
clear the blob from the in-progress set:
```java
final String name = exchange.getIn().getHeader(BlobConstants.BLOB_NAME,
String.class);
if (name != null) {
inProgress.remove(name);
}
```
The header is nevertheless labelled `producer`, and its description covers
only that direction, so the consumer's header table says nothing about which
blob an exchange came from - the first thing a route polling a container needs,
and the only way to tell the exchanges of a batch apart.
## Fix
Label it `common` - the component already uses that label for
`CamelAzureStorageBlobLeaseBlob` and
`CamelAzureStorageBlobLeaseDurationInSeconds` - and describe both directions:
> (producer) Override/set the blob name on the exchange headers, for the
operations related to a blob. (consumer) The name of the blob that was consumed.
No header name, type or behaviour changes. The regenerated
`azure-storage-blob.json` files are included.
--
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]