Index based confgurations clarifcation #7251
-
|
Dears, in cases with index based configurations like ################################################################ Do these indices need to be numeric or is it sufficient for them to be unique? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
@michaelklishin are you able to help here? That would be highly appreciated |
Beta Was this translation helpful? Give feedback.
-
|
hi @henkepa , the indices can be anything, do not need to be numbers. They are ignored by the config parser |
Beta Was this translation helpful? Give feedback.
-
|
@gomoripeti is correct, it is sufficient for them to be unique in most cases. In some rare cases the values of the keys themselves can be used but in the example above, they are ignored and only the values are retained. That said, if they were not unique the config parser would likely end up with a collection of just one node. |
Beta Was this translation helpful? Give feedback.
hi @henkepa , the indices can be anything, do not need to be numbers. They are ignored by the config parser
(For details, this is where parsing this particular key is implemented https://github.com/rabbitmq/rabbitmq-server/blob/v3.11.9/deps/rabbit/priv/schema/rabbit.schema#L1301)