if (storePosition < channel.size()) {
LOG.warn("Found {} with size {} and position {}, resetting to 0", logfile, channel.size(), storePosition);
savePosition(0);
} else {
channel.position(previousPosition.get());
}
}
return channel;
} catch (IOException e) {
throw Throwables.propagate(e);