private static long getMemStoreDataSize(HRegion r) {
    return r == null ? 0 : r.getMemStoreDataSize();
  }
Returns Return memstore data size or null if <code>r</code> is null
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MemStoreFlusher.java