Closed deichrenner closed 3 weeks ago
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Thank you for the feedback @deichrenner . We will investigate and get back to you asap.
@deichrenner I have reached out to the service team to see exactly what is happening and where this issue resides. Will update as soon as I have something.
Hi @kashifkhan, any news on this one?
@deichrenner sorry about the delay on this one. I'm still waiting to hear back from the service team on what the issue is and how do we go about resolving this. Its still on my radar :)
@deichrenner I just heard back from the service team and they have confirmed that tombstone events are not supported via the AMQP endpoint (which is what the EH SDK uses). Log compaction (which is a setting) will work automatically.
The service team has taken an action to update and align the docs online to make it clear whats supported & possible today.
Hi @deichrenner. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
@kashifkhan This means that we cannot use the event hub python SDK to send tombstones? Do you have a suggested workaround?
/unresolve
@SebastianSchroeder @deichrenner yes, you cant use the python send to send tombstones ( nor any other language ) as the service doesn't support tombstones via the AMQP endpoint. The documentation suggesting that tombstones are supported is wrong and the service team will update that to reflect the current status. Only log compaction is supported and there are no workaround as per the service team.
Alright, thank you for the clarification. We might try the kafka client and endpoint for our log compacted topics. For now we can live with empty messages not being deleted from the topic.
@SebastianSchroeder sorry about the inconvenience this caused for yall, I'm hoping that the service team updates the docs soon so that it reflects the current state of the log compaction feature along with limits/what works etc.
@SebastianSchroeder @deichrenner yes, you cant use the python send to send tombstones ( nor any other language ) as the service doesn't support tombstones via the AMQP endpoint. The documentation suggesting that tombstones are supported is wrong and the service team will update that to reflect the current status. Only log compaction is supported and there are no workaround as per the service team.
Dude, seriously? Instead of documenting a feature gap, how about make it work?
Describe the bug We want to use log compacted Event Hubs (see https://learn.microsoft.com/en-us/azure/event-hubs/use-log-compaction) with the python SDK. To use the full potential of the log compacted topics we need to be able to send tombstone events to indicate the end-of-life for a certain event indicated by its
partition_key
.We naively followed the documentation and tried to send an empty event with an existing
partition_key
likeHowever, the body of an event cannot be
None
. Therefore, the next best guess was to useEventData(b'')
. But this just sends and empty string and does not trigger the tombstone mechanic of the queue.To Reproduce Steps to reproduce the behavior:
Send a message with a
null
body (as mentioned in the documentation, linked above)Example code:
Expected behavior After one hour, I would have expected the topic to be empty. However, the message with the empty body still remains in the topic.
Question How to create an Event with a
null
body?