[ https://issues.apache.org/jira/browse/HBASE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448325#comment-13448325 ]
Hudson commented on HBASE-6623: ------------------------------- Integrated in HBase-0.94-security-on-Hadoop-23 #7 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/7/]) HBASE-6623 [replication] replication metrics value AgeOfLastShippedOp is not set correctly (Revision 1377036) Result = FAILURE stack : Files : * /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java > [replication] replication metrics value AgeOfLastShippedOp is not set > correctly > ------------------------------------------------------------------------------- > > Key: HBASE-6623 > URL: https://issues.apache.org/jira/browse/HBASE-6623 > Project: HBase > Issue Type: Bug > Components: replication > Affects Versions: 0.94.1 > Reporter: terry zhang > Assignee: terry zhang > Priority: Minor > Fix For: 0.92.2, 0.94.2 > > Attachments: jira-6623.patch > > > From code below we can see AgeOfLastShippedOp is not set correctly > {code:title=ReplicationSource.java|borderStyle=solid} > // entriesArray init > public void init(){ > this.entriesArray = new HLog.Entry[this.replicationQueueNbCapacity]; > for (int i = 0; i < this.replicationQueueNbCapacity; i++) { > this.entriesArray[i] = new HLog.Entry(); > } > } > //set the metrics value should not get the array length > protected void shipEdits() { > ... > this.metrics.setAgeOfLastShippedOp( > > this.entriesArray[this.entriesArray.length-1].getKey().getWriteTime()); > ... > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira