use of org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse in project hbase by apache.
the class WALEditsReplaySink method replayEdits.
private void replayEdits(final HRegionLocation regionLoc, final HRegionInfo regionInfo, final List<Entry> entries) throws IOException {
try {
RpcRetryingCallerFactory factory = RpcRetryingCallerFactory.instantiate(conf, null);
ReplayServerCallable<ReplicateWALEntryResponse> callable = new ReplayServerCallable<>(this.conn, this.rpcControllerFactory, this.tableName, regionLoc, entries);
factory.<ReplicateWALEntryResponse>newCaller().callWithRetries(callable, this.replayTimeout);
} catch (IOException ie) {
if (skipErrors) {
LOG.warn(HConstants.HREGION_EDITS_REPLAY_SKIP_ERRORS + "=true so continuing replayEdits with error:" + ie.getMessage());
} else {
throw ie;
}
}
}
Aggregations