GCP PubSub resulting in excessive "Administrator operations per minute" on publish #2539
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
Milestone
Our team is running into a problem when we start load testing Dapr using GCP PubSub to publish message. There is an admin action, which we believe is part of the
ensureTopic
call on every single publish when we are usingdisableEntityManagement: False
on ourpubsub.gcp.pubsub
Component.Expected Behavior
getTopic
should not be excessive.Actual Behavior
getTopic
is called multiple times in the process of publishing a message: https://github.com/dapr/components-contrib/blob/master/pubsub/gcp/pubsub/pubsub.go#L233-L261ensureTopic()
ensureTopic
may be too aggressive to check that the topic exists on every single publish.Topic
reference, thePublishResult
should have an error if the topic doesn't exist.Steps to Reproduce the Problem
Note: Our team was attempting to simulate traffic that we will experience in production.
Release Note
RELEASE NOTE: FIX Reduced number of administrator calls on publish to a GCP PubSub Topic.
The text was updated successfully, but these errors were encountered: