[
https://issues.apache.org/jira/browse/HBASE-11200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004330#comment-14004330
]
Hudson commented on HBASE-11200:
--------------------------------
SUCCESS: Integrated in HBase-0.98 #309 (See
[https://builds.apache.org/job/HBase-0.98/309/])
AsyncWriter of FSHLog might throw ArrayIndexOutOfBoundsException(HBASE-11200)
(fenghh: rev 1596100)
*
/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
> AsyncWriter of FSHLog might throw ArrayIndexOutOfBoundsException
> ----------------------------------------------------------------
>
> Key: HBASE-11200
> URL: https://issues.apache.org/jira/browse/HBASE-11200
> Project: HBase
> Issue Type: Bug
> Components: wal
> Affects Versions: 0.98.2
> Reporter: cuijianwei
> Assignee: cuijianwei
> Priority: Minor
> Fix For: 0.98.3
>
> Attachments: HBASE-11200-0.98.patch
>
>
> AsyncWriter of FSHLog might throw ArrayIndexOutOfBoundsException because of
> the following code in AsyncWriter#run():
> {code}
> }
> }
> if (!hasIdleSyncer) {
> int idx = (int)this.lastWrittenTxid % asyncSyncers.length;
> asyncSyncers[idx].setWrittenTxid(this.lastWrittenTxid);
> }
> }
> {code}
> In obove code, "this.lastWrittenTxid % asyncSyncers.length" might become
> negative when this.lastWrittenTxid is bigger than Interger.MAX_VALUE where
> this.lastWrittenTxid is a long. The attachment gives a quick fix.
--
This message was sent by Atlassian JIRA
(v6.2#6252)