hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15052) Use EnvironmentEdgeManager in ReplicationSource
Date Wed, 30 Dec 2015 00:23:49 GMT
Matteo Bertozzi created HBASE-15052:
---------------------------------------

             Summary: Use EnvironmentEdgeManager in ReplicationSource 
                 Key: HBASE-15052
                 URL: https://issues.apache.org/jira/browse/HBASE-15052
             Project: HBase
          Issue Type: Bug
          Components: Replication
            Reporter: Matteo Bertozzi
            Assignee: Matteo Bertozzi
            Priority: Trivial


ReplicationSource is passing System.currentTimeMillis() to MetricsSource.setAgeOfLastShippedOp()
which is subtracting that from EnvironmentEdgeManager.currentTime().
{code}
// if there was nothing to ship and it's not an error
// set "ageOfLastShippedOp" to <now> to indicate that we're current
metrics.setAgeOfLastShippedOp(System.currentTimeMillis(), walGroupId);

public void setAgeOfLastShippedOp(long timestamp, String walGroup) {
    long age = EnvironmentEdgeManager.currentTime() - timestamp;
{code}
 we should just use EnvironmentEdgeManager.currentTime() in ReplicationSource



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message