Replies: 7 comments 10 replies
-
I'm afraid you haven't provided any evidence that the metadata was "wrong". No details on how the default queue type was set. We can make the import part of the code ignore the We do not guess in this community. |
Beta Was this translation helpful? Give feedback.
-
The only actionable item from this so far was moved to #10470. |
Beta Was this translation helpful? Give feedback.
-
Without a set of steps to reproduce and a more complete stack trace, I don't have any other hypothesis. |
Beta Was this translation helpful? Give feedback.
-
I am using Erlang 26.2.1 and RabbitMQ 3.12.12 on Windows 11 Pro. @iqesak There must be some detail you're not telling us, because when I run
|
Beta Was this translation helpful? Give feedback.
-
Neither subscribe nor publish can have an effect on this virtual host setting. This is set when a virtual host is created, or when its metadata is explicitly updated (using CLI tools or the HTTP API). Something in the frameworks(s) you use may be setting up the virtual host lazily, that is, right before you publish or consume for the first time. See internal events that are emitted during the test, server logs, and if none of those reveal anything, take a traffic capture (that will include HTTP API traffic to the node, which can be logged if you opt in). |
Beta Was this translation helpful? Give feedback.
-
In the provided definition file, you can see that the "vhosts": [
{
"limits": [],
"metadata": {
"description": "",
"tags": []
},
"name": "/"
}
], So it makes sense for it to be returned as |
Beta Was this translation helpful? Give feedback.
-
@iqesak I still can't reproduce this issue. We will need exact steps to reproduce. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Using rabbitmqctl.bat to export definitions produce wrong metadata in vhosts array when using JSON format.
After trying to import previously exported definition JSON file, RabbitMQ fails to boot with exception repeatably.
ErlangOTP 26.2 (tested also in 25.3.2.28)
RabbitMQ 3.12.12
Reproduction steps
** Reason for termination ==
** {function_clause, [{rabbit_queue_type, discover, [<<"undefined">>], ...
if you open exported json file, you can find following section:
"vhosts": [{"limits":[],"metadata":{"default_queue_type":"undefined","description":"","tags":[]},"name":"/"}]
Expected behavior
section for vhosts in exported JSON file like:
"vhosts": [{"limits":[],"metadata":{"description":"","tags":[]},"name":"/"}]
without critical segment, which caused crash: "default_queue_type":"undefined"
Additional context
Exporting via management web page works fine without this issue.
Critical section looks like this: "vhosts": ["name":"/"}]
But I need to use a script.
Beta Was this translation helpful? Give feedback.
All reactions