Found this issue when try to fix the flaky unit test TestRegionReplicaSplit. It may fail as
java.lang.AssertionError: Splitted regions should not be assigned to same region server.
Now wouldLowerAvailability method only consider the primary regions. The replica region can't assign to same server with primary region. But can be assigned to same server with other replica regions.