hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "terry zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-6623) [replication] replication metrics value AgeOfLastShippedOp is not set correctly
Date Tue, 21 Aug 2012 05:14:37 GMT
terry zhang created HBASE-6623:
----------------------------------

             Summary: [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


>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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message