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:
Zhihong Yu 2013-10-01 18:04:44 +00:00
parent 33394d716d
commit 289c7e7966
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}