GET /vhosts
output contains empty list + stats
#7955
Replies: 2 comments 2 replies
-
This is an effect of metric cleanup, periodic stats emission, concurrent virtual host definitions, and the fact that in Erlang, an empty "object" and an empty list are historically the same thing. Virtual hosts are not meant to be created and deleted several times a second. |
Beta Was this translation helpful? Give feedback.
-
The only solution I can think of is filtering out such virtual hosts (that don't have any metrics emitted for them because they were created fractions of a second ago). Empty metric objects would not be very useful anyway. Unfortunately, so far I cannot reproduce. So consider reworking your tests to not churn through virtual hosts so much. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes,
GET /vhosts
contains either or both of the following objects:However, I would expect only vhost objects to be returned.
Is this a known bug (could not find an already reported bug on the mailing list nor on GitHub), or expected (could not find this in the documentation)?
Particularities: we create and delete several vhosts per second (CI environment).
Example:
Beta Was this translation helpful? Give feedback.
All reactions