Skip to content
This repository was archived by the owner on Dec 14, 2020. It is now read-only.
This repository was archived by the owner on Dec 14, 2020. It is now read-only.

Message Annotations content missing #175

Description

@gavinfish

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:

amqp/client.go

Lines 1810 to 1839 in 7c41f1a

func (r *Receiver) Receive(ctx context.Context) (*Message, error) {
if atomic.LoadUint32(&r.link.paused) == 1 {
select {
case r.link.receiverReady <- struct{}{}:
default:
}
}
// non-blocking receive to ensure buffered messages are
// delivered regardless of whether the link has been closed.
select {
case msg := <-r.link.messages:
msg.receiver = r
return &msg, nil
case <-ctx.Done():
return nil, ctx.Err()
default:
}
// wait for the next message
select {
case msg := <-r.link.messages:
msg.receiver = r
return &msg, nil
case <-r.link.done:
return nil, r.link.err
case <-ctx.Done():
return nil, ctx.Err()
}
}

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions