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

[🐛 BUG]: Jobs amqp redial for non existed queue #1472

Closed
1 task done
iborysenko opened this issue Feb 21, 2023 · 3 comments · Fixed by roadrunner-server/amqp#45
Closed
1 task done

[🐛 BUG]: Jobs amqp redial for non existed queue #1472

iborysenko opened this issue Feb 21, 2023 · 3 comments · Fixed by roadrunner-server/amqp#45
Assignees
Labels
B-bug Bug: bug, exception F-need-verification
Milestone

Comments

@iborysenko
Copy link

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

A bug happened!

I have an pipeline which I'm using only for pushing tasks to the exchange

jobs:
  consume: [] # not consuming any queues
  pipelines:
    push_pipeline:
      driver: amqp
      config:
        exchange: default
        routing_key:  product.created 
        exchange_type: direct

Note that in this case default queue is not exists and not consumed
In case when RabbitMQ server rebooted, RR trying to redial connection, and trying to reconnect to this default queue, and then fall.

Version (rr --version)

2.12.2

How to reproduce the issue?

jobs:
  consume: [] # not consuming any queues
  pipelines:
    push_pipeline:
      driver: amqp
      config:
        exchange: default
        routing_key:  product.created 
        exchange_type: direct

Push task

$queue = $this->jobs->connect('push_pipeline');
 $queue->dispatch(new PrepatedTask('product.created ', ['foo' => 'bar']));

Rebood Rabbitmq ant try to push new one task

$queue = $this->jobs->connect('push_pipeline');
 $queue->dispatch(new PrepatedTask('product.created ', ['foo' => 'bar']));

Relevant log output

rabbitmq dial was succeed. trying to redeclare queues and subscribers
backoff operation failed","error":"rabbitmq_redial: Exception (404) Reason: \"NOT_FOUND - no queue 'default' in vhost 'dev'

{"level":"error","ts":1676970098.943889,"logger":"jobs","msg":"job push error","ID":"ec09b299-1fc7-408f-9f65-e20cd0e66295","pipeline":"product.created","driver":"amqp","start":1676970038.9437327,"elapsed":60.000149781,"error":"rabbitmq_push: Timeout:\n\trabbitmq_handle_item: context deadline exceeded"}
@iborysenko iborysenko added B-bug Bug: bug, exception F-need-verification labels Feb 21, 2023
@github-project-automation github-project-automation bot moved this to Backlog in General Feb 21, 2023
@rustatian rustatian moved this from Backlog to Todo in General Feb 21, 2023
@rustatian rustatian added this to the v2023.1.0 milestone Feb 21, 2023
@rustatian
Copy link
Member

Hey @iborysenko 👋🏻

Yeah, confirmed, planned for 2023.1.

@rustatian rustatian moved this from Todo to In Progress in General Feb 21, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Unreleased in General Feb 21, 2023
@iborysenko
Copy link
Author

Hi, @rustatian
What is the estimated release date for 2023.1 ?

@rustatian
Copy link
Member

Hey 👋 Beta - next Thursday, stable - be the end of March.

@rustatian rustatian moved this from Unreleased to Done in General Apr 13, 2023
@rustatian rustatian mentioned this issue Apr 13, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: bug, exception F-need-verification
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants