amqp icon indicating copy to clipboard operation
amqp copied to clipboard

Message Annotations content missing

Open gavinfish opened this issue 4 years ago • 3 comments

Related with Azure/azure-event-hubs-go#131.

After some investigation, I find that the msg received in the below method only has three Annotations: https://github.com/vcabbage/amqp/blob/7c41f1a1270d0d35b778b09b70c0e3063cd088af/client.go#L1810-L1839

annotation

The missing x-opt-partition-id annotation prevents the event hubs library to parse the partitionId for the event.

https://github.com/Azure/azure-event-hubs-go/blob/26616d904577c5d0b8c0a486b4b0e77c9c002284/event.go#L56-L62

gavinfish avatar Sep 25 '19 06:09 gavinfish

Looking at a packet capture when receiving from Event Hubs I don't see x-opt-partition-id. Is there some thing extra that needs to be done to get EH to include that?

image

vcabbage avatar Sep 25 '19 13:09 vcabbage

@devigned it seems that the x-opt-partition-id stuff is introduced in Azure/azure-event-hubs-go#108. Is there any documentation for this? I cannot find any test cases which will let the service side send this annotation.

gavinfish avatar Sep 26 '19 02:09 gavinfish

I can’t find docs regarding x-opt-partition-id and at this point, I’m not sure if that was a meta field that previously existed or if it was a request to the service team to add the field. I’d reach out to the service team or other AMQP SDK teams for guidance.

This issue belongs in the Azure repos.

devigned avatar Sep 26 '19 14:09 devigned