if (newSumVal > halfSumVal) break;  // we found the region with the median
movingSumVal = newSumVal;
startRow = entry.getKey();
}
Scan scan2 = new Scan(scan);
<BUG>if (startRow != null) scan2.setStartRow(startRow);
HTable table = new HTable(conf, tableName);
int cacheSize = scan2.getCaching();</BUG>
if (!scan2.getCacheBlocks() || scan2.getCaching() < 2) {
scan2.setCacheBlocks(true);

if (newSumVal > halfSumVal) break;  // we found the region with the median
movingSumVal = newSumVal;
startRow = entry.getKey();
}
Scan scan2 = new Scan(scan);
if (startRow != null) scan2.setStartRow(startRow);
HTable table = null;
ResultScanner scanner = null;
try {
table = new HTable(conf, tableName);
int cacheSize = scan2.getCaching();
if (!scan2.getCacheBlocks() || scan2.getCaching() < 2) {
scan2.setCacheBlocks(true);
