Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Partition key not preserved on send #20

Closed
kurtb opened this issue Mar 24, 2017 · 2 comments
Closed

Partition key not preserved on send #20

kurtb opened this issue Mar 24, 2017 · 2 comments

Comments

@kurtb
Copy link

kurtb commented Mar 24, 2017

I'm attempting to follow https://github.com/Azure/azure-event-hubs-node/tree/master/send_receive and do a send/receive with a partition key set. Debugging the code shows that x-opt-partition-key is being set on the message. But upon receipt the partitionKey is undefined. And as such the messages are distributed across the partitions. Did I miss a code/configuration/etc... step or is this a bug in the library?

@kurtb
Copy link
Author

kurtb commented Mar 24, 2017

FYI this appears to be an issue with the name of the message annotations option to the amqp10 library. Not sure when if/when it changed but it's now messageAnnotations and not annotations. After that small change everything seems to be working.

I opened a pull request with the fix #21

@pierreca
Copy link
Contributor

pierreca commented Mar 31, 2017

Thanks a lot for your contribution!
Fix has been merged and package has been released with version 0.0.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants