hbase-commits mailing list archives

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

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


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

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