Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EventHubs] no-op instead of raising error when sending out empty event data batch #16638

Merged
merged 8 commits into from
Feb 24, 2021

Conversation

yunhaoling
Copy link
Contributor

@yunhaoling yunhaoling commented Feb 9, 2021

addressing: #14841

  • doing no-op instead of raising error when sending empty event batch
    • this aligns with event hubs in other languages and service bus in python
  • This should be a non-breaking change.

references:

JS EH:
https://github.com/Azure/azure-sdk-for-js/blob/fc443f9b35c1cce112f9862685c07bed2bbae854/sdk/eventhub/event-hubs/src/eventHubSender.ts#L304-L316

.NET EH:
https://github.com/Azure/azure-sdk-for-net/blob/b493f7ad5487fd0d01f004e9f7ebdf50bfec0b96/sdk/eventhub/Azure.Messaging.EventHubs/src/Producer/EventHubProducerClient.cs#L573-L576

JAVA EH: can not find the code :(

@yunhaoling yunhaoling changed the title [EventHubs] Clear error message when sending out empty event data batch [EventHubs] no-op instead of raising error when sending out empty event data batch Feb 9, 2021
@yunhaoling
Copy link
Contributor Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling
Copy link
Contributor Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling
Copy link
Contributor Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling
Copy link
Contributor Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@swathipil swathipil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

sdk/eventhub/azure-eventhub/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: swathipil <76007337+swathipil@users.noreply.github.com>
@yunhaoling
Copy link
Contributor Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yunhaoling yunhaoling merged commit 1bfb95a into Azure:master Feb 24, 2021
@yunhaoling yunhaoling deleted the yuling/eh/empty-message-error branch March 10, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants