Search in sources :

Example 1 with ReplicateWALEntryResponse

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;
        }
    }
}
Also used : ReplicateWALEntryResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse) RpcRetryingCallerFactory(org.apache.hadoop.hbase.client.RpcRetryingCallerFactory) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 RpcRetryingCallerFactory (org.apache.hadoop.hbase.client.RpcRetryingCallerFactory)1 ReplicateWALEntryResponse (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse)1