ECP-VeloC / redset

Low-level distributed erasure coding library to protect datasets of MPI applications
MIT License
2 stars 3 forks source link

fix: check that xor sets all have more than one rank #22

Closed adammoody closed 3 years ago

adammoody commented 3 years ago

The encoding schemes require redundancy groups to meet certain requirements. For XOR, each group must have at least two members. Partner and RS included checks, but XOR was missing its check. This would allow an invalid group to pass through, which eventually leads to a divide by zero. This PR adds a check to print an error message and abort, which is not great. Though, it's better than a random divide by zero and it's consistent with how Partner and RS behave.

adammoody commented 3 years ago

Thanks again @CamStan