}
try {
HRegionInterface rrs = getRS();
LOG.debug("Replicating " + entries.size() + ", " + this.currentSize + " bytes");
// can't avoid the copy here, the replicateLogEntries RPC require an HLog.Entry[]
rrs.replicateLogEntries(entries.toArray(new HLog.Entry[entries.size()]));
if (this.lastLoggedPosition != this.repLogReader.getPosition()) {
this.manager.logPositionAndCleanOldLogs(this.currentPath,
this.peerClusterZnode, this.repLogReader.getPosition(), queueRecovered, currentWALisBeingWrittenTo);
this.lastLoggedPosition = this.repLogReader.getPosition();
}