</BUG>
context.setAttachment(fileSplit.getExtension());
while(getRecordReader().nextKeyValue()) {
load(getRecordReader().getCurrentKey(), getRecordReader().getCurrentValue(), context);
<BUG>++count;
}</BUG>
} finally {
if(getRecordReader() != null) {
getRecordReader().close();
}

long count = 0;
for(GuaguaFileSplit fileSplit: context.getFileSplits()) {
LOG.info("Loading filesplit: {}", fileSplit);
try {
initRecordReader(fileSplit);
LOG.info("file extension: {}, split: {}", fileSplit.getExtension(), fileSplit);
context.setAttachment(fileSplit.getExtension());
while(getRecordReader().nextKeyValue()) {
load(getRecordReader().getCurrentKey(), getRecordReader().getCurrentValue(), context);
count += 1L;
}
} finally {
if(getRecordReader() != null) {
getRecordReader().close();
