hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rekha Joshi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-10908) On CompactionRequest, reader can be null on recalculateSize
Date Fri, 04 Apr 2014 06:12:16 GMT
Rekha Joshi created HBASE-10908:
-----------------------------------

             Summary: On CompactionRequest, reader can be null on recalculateSize
                 Key: HBASE-10908
                 URL: https://issues.apache.org/jira/browse/HBASE-10908
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.96.0
            Reporter: Rekha Joshi
            Priority: Minor


Comment from Honghua Feng 
{code}
private void recalculateSize() {
  long sz = 0;
  for (StoreFile sf : this.filesToCompact) {
    sz += sf.getReader().length();
  }
  this.totalSize = sz;
}
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message