Hi Karl, thanks for the details.
The behaviour has no impact on my team's projects at the moment. We've got rid of the only (and quite questionable) use case that relied on the exact low max-length value.
It's the behaviour itself that seemed to me a bit non-obvious and potentially confusing to the other users as well, so I decided to share the info with the team and the community.
Probably the docs could be updated in some way, e.g. by mentioning this specific case or adding some general precautions on the low max-length values?
I've also noticed that some examples on the
https://www.rabbitmq.com/maxlength.html page contain pretty low max-length values, such as `"^two-messages$" '{"max-length":2,"overflow":"reject-publish"}'` policy (that appears to effectively be `three-messages` for a quorum queue =)
Cheers,
Eugene