components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

Dapr invoke binding with Event Hub publishes multiple messages

Open arkakk93 opened this issue 3 years ago • 15 comments

Description For each event that I publish using Azure Event Hub binding, there are several events that get published to the event hub. The service is deployed on AKS cluster

Using following to publish: await this.daprClient.InvokeBindingAsync("componentName", "create", object, new Dictionary<string, string> { { "partitionKey", "someId"} });

Details Component Used

apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: componentName namespace: spec: type: bindings.azure.eventhubs version: v1 metadata: - name: connectionString # Azure EventHubs connection string secretKeyRef: name: keyName key: keyName - name: consumerGroup value: consumerGroup - name: storageAccountName # Azure Storage Account Name value: "storageAccountName" - name: storageAccountKey # Azure Storage Account Key secretKeyRef: name: storageAccountKey key: storageAccountKey - name: storageContainerName # Azure Storage Container Name value: "storageContainerName" auth: secretStore: keyvaultsecretstore

Also this component is used by another service to subscribe to this event hub. Reason for using binding and not Pub/Sub component here: Based on issue that mentions pub/sub component is being re-written.

SDK version being used: Dapr.AspNetCore - Version="1.3.0" Dapr version on AKS cluster: 1.4.3

arkakk93 avatar Jan 28 '22 16:01 arkakk93

This is happening when the load is increased With one or two messages, it seems to be working fine

Is this the correct setup? Like mentioned above same binding is used by one service to publish and other to subscribe. Should each service have different components for binding (and Invoke binding) to work correctly?

arkakk93 avatar Jan 31 '22 07:01 arkakk93

@berndverst @halspang I think this issue should be moved to components-contrib ... ?

mukundansundar avatar Mar 17 '22 06:03 mukundansundar

@mukundansundar - I think you're right. This may need to be moved over to components-contrib. I was hoping to get a chance to investigate it but haven't had time to setup my own environment pointing at EventHub.

halspang avatar Mar 17 '22 16:03 halspang

I can confirm that we are seeing this issue in our production environment

i-am-shodan avatar Mar 30 '22 10:03 i-am-shodan

As a test i've tried using the eventhub pubsub component. That hasn't demonstrated any issues.

i-am-shodan avatar Mar 30 '22 12:03 i-am-shodan

As a test i've tried using the eventhub pubsub component. That hasn't demonstrated any issues.

What version of Dapr and Dapr SDK(.NET) did you use for this?

arkakk93 avatar Apr 01 '22 08:04 arkakk93

@berndverst @halspang Can you move this issue to components-contrib ... I do not have permissions for that.

I think then this issue can be triaged to be picked up ...

mukundansundar avatar Apr 09 '22 06:04 mukundansundar

Dapr 1.6.0. SDK and runtime both match,

i-am-shodan avatar Apr 13 '22 20:04 i-am-shodan

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jun 25 '22 23:06 dapr-bot

I'm still seeing this issue

robeving avatar Jun 27 '22 08:06 robeving

I'm still seeing this issue

@robeving are you seeing this with 1.8.0-rc.3 by chance? (That was released just a few days ago)

berndverst avatar Jun 27 '22 15:06 berndverst

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jul 27 '22 15:07 dapr-bot

Can confirm that this issue still seems present in 1.8 - have received double data in our eventhub

robeving avatar Jul 29 '22 08:07 robeving

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Aug 28 '22 08:08 dapr-bot

still broken

i-am-shodan avatar Aug 28 '22 10:08 i-am-shodan

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Sep 27 '22 10:09 dapr-bot

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Oct 04 '22 11:10 dapr-bot