hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1528163 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java
Date Tue, 01 Oct 2013 18:04:44 GMT
Author: tedyu
Date: Tue Oct  1 18:04:44 2013
New Revision: 1528163

URL: http://svn.apache.org/r1528163
Log:
HBASE-9664 ArrayIndexOutOfBoundsException may be thrown in TestZKSecretWatcher


Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java?rev=1528163&r1=1528162&r2=1528163&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java
Tue Oct  1 18:04:44 2013
@@ -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;
         }
       }



Mime
View raw message