You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Rekha Joshi (JIRA)" <ji...@apache.org> on 2014/04/04 08:12:17 UTC

[jira] [Created] (HBASE-10908) On CompactionRequest, reader can be null on recalculateSize

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)