hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fen...@apache.org
Subject svn commit: r1596100 - /hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
Date Tue, 20 May 2014 01:21:31 GMT
Author: fenghh
Date: Tue May 20 01:21:30 2014
New Revision: 1596100

URL: http://svn.apache.org/r1596100
Log:
AsyncWriter of FSHLog might throw ArrayIndexOutOfBoundsException(HBASE-11200)

Modified:
    hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java

Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java?rev=1596100&r1=1596099&r2=1596100&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
(original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
Tue May 20 01:21:30 2014
@@ -1145,7 +1145,7 @@ class FSHLog implements HLog, Syncable {
             }
           }
           if (!hasIdleSyncer) {
-            int idx = (int)this.lastWrittenTxid % asyncSyncers.length;
+            int idx = (int)(this.lastWrittenTxid % asyncSyncers.length);
             asyncSyncers[idx].setWrittenTxid(this.lastWrittenTxid);
           }
         }



Mime
View raw message