Skip to content
  • Iustin Pop's avatar
    hbal: handle empty node groups · 2072221f
    Iustin Pop authored
    
    
    This patch changes an internal assert (which can only be triggered
    when a node group is empty) into properly handling this case (and
    returning empty node/instance lists).
    
    While we could handle this in the backend (Cluster.splitNodeGroup)
    this would actually mean than we change the behaviour for a cluster
    with just two node groups, once of which is empty (where today we
    don't require a node group argument).
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    2072221f