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

fix: speed up pubsub provisioning #3916

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Jan 7, 2025

fixes: #3901
prerequisite: #3917

Wraps docker compose up with a lock and a cached success flag.

@matt2e matt2e requested a review from alecthomas as a code owner January 7, 2025 02:34
@alecthomas alecthomas mentioned this pull request Jan 7, 2025
@matt2e matt2e force-pushed the matt2e/pubsub/provisioning-perf branch from 4a9bdfc to 4cb8b82 Compare January 7, 2025 02:37
@matt2e matt2e force-pushed the matt2e/pubsub/provisioning-perf branch from 85bf35f to 5dac907 Compare January 7, 2025 03:06
matt2e added a commit that referenced this pull request Jan 7, 2025
Fixes a race condition where multiple go routines would try and append
to the same slice concurrently.
We would end up losing some RuntimeEvents.

The fix involves publishing to a channel, aggregating the events and
then marking the step as complete.

I only started seeing the bug when pubsub provisioning began completing
multiple steps in quick succession:
#3916
@matt2e matt2e force-pushed the matt2e/pubsub/provisioning-perf branch from 5dac907 to b189cc4 Compare January 7, 2025 03:06
@matt2e matt2e merged commit 37542a5 into main Jan 7, 2025
62 checks passed
@matt2e matt2e deleted the matt2e/pubsub/provisioning-perf branch January 7, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provisioning topics in dev is slow
2 participants