Skip to content

Make sure temporary stream output queues get deleted, make all queues used by the stream service auto deletable #3746

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

Merged
merged 2 commits into from
Sep 15, 2017

Conversation

Kami
Copy link
Member

@Kami Kami commented Sep 15, 2017

The issue with execution output queues used by stream service never getting deleted was caught by deploying v2.5dev on CI server and by @armab, @enykeev.

The issue was that the queue wasn't exclusive.

This pull request fixes that and on top of that, it also makes all queues used by the stream service auto deletable.

We use random queue names for queues used by the stream service, but we don't have auto_delete=True. This means that when stream service restart, existing queue will persist, but we will create a new queue on start which will be used by the consumers. This means old queue will be left around, but nothing will ever consume from it again.

Also, as far as I know, we basically want (almost) always use exclusive=True and auto_delete=True for queues with random names. If we don't do that, we will have zombie queues laying around.

Somewhat related to #3640 - I also recommended using auto_delete=True there.

This also brings up an issue with testing for things like that - we need to test for CPU usage, memory usage, number of queues, etc. over time. This means we should invest some time into a framework so we can better test for issues like that.

This way they are deleted after no one is consuming from them anymore.
This way they get automatically deleted when stream is shut down. We use
random names for those queues so if we don't do that, they will stay
around when stream is restart (new queues get created on restart) and
nothing will consume from them hence we are left with zombie queues.
@arm4b arm4b added the bug label Sep 15, 2017
@arm4b arm4b added this to the 2.5.0 milestone Sep 15, 2017
Copy link
Member

@arm4b arm4b left a comment

Choose a reason for hiding this comment

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

👍

@Kami Kami merged commit aba708b into master Sep 15, 2017
@Kami Kami deleted the delete_output-queus branch September 15, 2017 13:34
Kami added a commit that referenced this pull request Sep 15, 2017
@Kami Kami mentioned this pull request Sep 15, 2017
Kami added a commit that referenced this pull request Sep 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants