Skip to content

Broker does not restart with binding to exclusive queue and Khepri activated #13352

@acogoluegnes

Description

@acogoluegnes

This has been detected by activating Khepri in the RabbitMQ AMQP 091 Java client test suite.

A test does the following:

ch.exchangeDeclare(x, "fanout");
ch.queueDeclare(q, false, false, true, null);
ch.queueBind(q, x, "");

Then stop_app / start_app the broker (this is part of the connection recovery test). The broker fails to restart with the following error:

error:badarg

    ets:lookup/2
        args: [rabbit_registry,{exchange,fanout}]
    rabbit_registry:lookup_module/2, line 57
    rabbit_exchange:type_to_module/1, line 542
    rabbit_exchange:serialise_events/1, line 85
    rabbit_exchange:serial/1, line 90
    rabbit_binding:-process_deletions/1-fun-0-/2, line 494
    maps:foreach_1/3, line 391
    rabbit_amqqueue:notify_queue_binding_deletions/1, line 1968

Adding a 1-second delay between stop_app / start_app in the test does not help. Doing start_app manually after the test execution does work though.

Tested on 4.0.6 and main.

Java test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions