HBASE-9664 ArrayIndexOutOfBoundsException may be thrown in TestZKSecretWatcher
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1528163 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
33394d716d
commit
289c7e7966
|
@ -112,7 +112,7 @@ public class TestZKSecretWatcher {
|
|||
for (int i=0; i<2; i++) {
|
||||
if (tmp[i].isMaster()) {
|
||||
KEY_MASTER = tmp[i];
|
||||
KEY_SLAVE = tmp[ i+1 % 2 ];
|
||||
KEY_SLAVE = tmp[ (i+1) % 2 ];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue