You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
According to the Event Hub documentation "Client applications set tombstones by sending a new event with an existing key and a null event payload.”
However, the class com.azure.messaging.eventhubs.EventData does NOT allow to have a null body.
Hence, at the moment it is not possible to send a proper tombstone event to the azure event hub, using the azure sdk for java.
Exception or Stack Trace
java.lang.NullPointerException: 'body' cannot be null.
at java.base/java.util.Objects.requireNonNull(Objects.java:259)
at com.azure.messaging.eventhubs.EventData.<init>(EventData.java:64)
To Reproduce
Run the provided code snippet or have a look at the code of the com.azure.messaging.eventhubs.EventData.
There you can see that null is not permitted as a value for body
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
Bug Description Added
Repro Steps Added
Setup information Added
The text was updated successfully, but these errors were encountered:
Describe the bug
According to the Event Hub documentation "Client applications set tombstones by sending a new event with an existing key and a null event payload.”
However, the class com.azure.messaging.eventhubs.EventData does NOT allow to have a null body.
Hence, at the moment it is not possible to send a proper tombstone event to the azure event hub, using the azure sdk for java.
Exception or Stack Trace
To Reproduce
Run the provided code snippet or have a look at the code of the
com.azure.messaging.eventhubs.EventData
.There you can see that null is not permitted as a value for
body
Code Snippet
Expected behavior
It is expected to be able to create an event with a null body, in order to provide correct tombstone events to the event hub.
Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: