p4runtime icon indicating copy to clipboard operation
p4runtime copied to clipboard

Semantics of max_group_size > size in Action Selectors.

Open jonathan-dilorenzo opened this issue 3 years ago • 1 comments

As discussed with @smolkaj, it seems clear from the ActionProfile spec that the max_group_size, which denotes the maximum total weight of members within a single group, should never be greater than the size, which denotes the maximum total weight of members across ALL groups, in an Action Selector.

However, I can't find anything in the spec that explicitly disallows this or tells me what error should be thrown. I think that this fact is probably a bug in the spec?

jonathan-dilorenzo avatar Jun 19 '21 00:06 jonathan-dilorenzo

Relatedly, it also does not seem to make sense to have size <= 0, so perhaps that should also be explicitly disallowed. The combination of these two conveniently means that max_group_size >= 0.

jonathan-dilorenzo avatar Jun 23 '21 18:06 jonathan-dilorenzo