Class TestContinuousBackupReplicationEndpoint.PartiallyUploadedBulkloadFileEndpoint
java.lang.Object
org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
org.apache.hadoop.hbase.backup.replication.ContinuousBackupReplicationEndpoint
org.apache.hadoop.hbase.backup.replication.TestContinuousBackupReplicationEndpoint.PartiallyUploadedBulkloadFileEndpoint
- All Implemented Interfaces:
org.apache.hadoop.hbase.replication.ReplicationEndpoint,org.apache.hadoop.hbase.replication.ReplicationPeerConfigListener,org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service
- Enclosing class:
- TestContinuousBackupReplicationEndpoint
public static class TestContinuousBackupReplicationEndpoint.PartiallyUploadedBulkloadFileEndpoint
extends org.apache.hadoop.hbase.backup.replication.ContinuousBackupReplicationEndpoint
Replication endpoint that simulates leaving a partial file behind on first attempt, then
succeeds on second attempt by overwriting it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
org.apache.hadoop.hbase.replication.ReplicationEndpoint.Context, org.apache.hadoop.hbase.replication.ReplicationEndpoint.ReplicateContextNested classes/interfaces inherited from interface org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service
org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service.Listener, org.apache.hbase.thirdparty.com.google.common.util.concurrent.Service.State -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.backup.replication.ContinuousBackupReplicationEndpoint
CONF_BACKUP_ROOT_DIR, CONF_PEER_UUID, ONE_DAY_IN_MILLISECONDS, WAL_FILE_PREFIXFields inherited from class org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
ctx, REPLICATION_WALENTRYFILTER_CONFIG_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreset()Reset for new testsprotected voiduploadBulkLoadFiles(long dayInMillis, List<org.apache.hadoop.fs.Path> bulkLoadFiles) Methods inherited from class org.apache.hadoop.hbase.backup.replication.ContinuousBackupReplicationEndpoint
beforePersistingReplicationOffset, copyWithCleanup, doStart, doStop, getPeerUUID, init, replicate, start, stopMethods inherited from class org.apache.hadoop.hbase.replication.BaseReplicationEndpoint
canReplicateToSameCluster, getNamespaceTableCfWALEntryFilter, getScopeWALEntryFilter, getWALEntryfilter, isStarting, peerConfigUpdatedMethods inherited from class org.apache.hbase.thirdparty.com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.replication.ReplicationEndpoint
awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning
-
Field Details
-
firstAttempt
-
-
Constructor Details
-
PartiallyUploadedBulkloadFileEndpoint
-
-
Method Details
-
uploadBulkLoadFiles
protected void uploadBulkLoadFiles(long dayInMillis, List<org.apache.hadoop.fs.Path> bulkLoadFiles) throws org.apache.hadoop.hbase.backup.replication.BulkLoadUploadException - Overrides:
uploadBulkLoadFilesin classorg.apache.hadoop.hbase.backup.replication.ContinuousBackupReplicationEndpoint- Throws:
org.apache.hadoop.hbase.backup.replication.BulkLoadUploadException
-
reset
Reset for new tests
-