-
Notifications
You must be signed in to change notification settings - Fork 500
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
SNS/SQS Pubsub - Same subscriber consuming from 2 pubsub components - Event handling fails / is inconsistent #3646
Comments
Dapr version that is used in this test
|
Thanks, this helps |
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. |
bump to prevent going stale. |
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. |
bump to prevent going stale |
Expected Behavior
When 2
pubsub.aws.snssqs
components are defined in a cluster and the same service subscribes to these 2 pubsub components, subscriber is expected to consistently receive and process events coming from both components.I have validated that this behavior works fine when using RMQ-pubsub component.
Actual Behavior
Events are not received / processed; some events are processed multiple times; errors seens in daprd logs. See steps to reproduce below for details of how i setup the reproducer and what the outcome is.
Steps to Reproduce the Problem
(Please use the attached reproducer project which can easily run these tests in local (rmq) / EKS (sqssns) using tilt with simple commands)
pubsub.aws.snssqs
components -dapr-pubsub
anddapr-highprio-pubsub
pub
) randomly publishes events to topicstesttopic1
ondapr-pubsub
andtesttopic2
ondapr-highprio-pubsub
sub
which is a simple FastAPI DaprApp as so -Deploy these services to EKS cluster using Tilt
Trigger the publisher to send events - use the provisioned
ingress
component's endpoint - the url to hit to trigger this event would be -http:<ENDPOINT>/trigger
.Notice logs from the subscriber pod. you will see errors like this -
Further the number of msges expected to be received is not consistent. For instance in the log file that is attached to this bug, i expect 10-events from testtopic1 and 10 from testtopic2. But there are much lower number of actual events received while also there being duplicate events processed. See attached log file for a full run.
Notes to run reproducer app with RabbitMQ in local-cluster
rancher-desktop
to run this test. UpdateLOCAL_CLUSTER_CONTEXT
in Tiltfile to the cluster context name that you intend to use.kubectl config use-context <your-context>
tilt up
to deploy the test-app to your cluster in namespacerw-dapr-test
.tilt down
to bring it down.NOTES to run reproducer app in EKS
sandbox
to run this test. UpdateSANDBOX_CLUSTER_CONTEXT
in Tiltfile to the cluster context name that you intend to use.kubectl config use-context <your-context>
tilt up
to deploy the test-app to your cluster in namespacerw-dapr-test
.tilt down
to bring it down.Log file showing errors and inconsistent event handling -
dapr-mulitpubsub-fail.log
Reproducer project -
dapr-multi-pubsub.zip
The text was updated successfully, but these errors were encountered: