Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

SQS create_queue returns error

#8

In version 2.9.1, in file sqs/sqs.rb function queue, there's an incorrect assumption about what happens when creating a queue that already exists.

if create
        url = @interface.create_queue(queue_name, visibility) # this returns the url even if it exists

This may have been true when SQS launched, but SQS now returns a QueueAlreadyExists error when an attempting to create a queue that already exists with different attributes (eg. a different VisibilityTimeout). http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReferenc...

I believe checking for an existing queue before attempting to create it better reflects the docstring: "If the queue does not exist at Amazon SQS and +create+ is true, the method creates it."

Attached is a patch to accomplish this.

Reported by Jim Blomo · May 28th, 2013 @ 08:44 AM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.