prevents master discovery to get stuck in endless loop if sentinels are ...

We came across an annoying issue at our systems when the sentinal server was not reachable. Due to the neverending master discovery loop all processes were soon busy, completely bringing our plattform to a halt.
This should prevent this and raise an exception.