hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Newman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-9286) ageOfLastShippedOp replication metric doesn't update if the regionserver is updated
Date Wed, 21 Aug 2013 04:43:54 GMT
Alex Newman created HBASE-9286:
----------------------------------

             Summary: ageOfLastShippedOp replication metric doesn't update if the regionserver
is updated
                 Key: HBASE-9286
                 URL: https://issues.apache.org/jira/browse/HBASE-9286
             Project: HBase
          Issue Type: Bug
            Reporter: Alex Newman


In replicationmanager
     HRegionInterface rrs = getRS();
        rrs.replicateLogEntries(Arrays.copyOf(this.entriesArray, currentNbEntries));
....
        this.metrics.setAgeOfLastShippedOp(
            this.entriesArray[currentNbEntries-1].getKey().getWriteTime());
        break;

which makes but is wrong. The problem is that rrs.replicateLogEntries will block for a very
long time if the slave server is for instance suspended.

However this is easy to fix. We just need to call       refreshAgeOfLastShippedOp();
on a regular basis, in a different thread. I've attached a patch which fixed this for cdh4.
I can make one for trunk and the like as well if you need me to do but it's a small change.

--
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

Mime
View raw message