Package org.apache.hadoop.ozone.container.replication
package org.apache.hadoop.ozone.container.replication
Classes to replicate container data between datanodes.
-
ClassDescriptionAbstract class to capture common variables and methods for different types of replication tasks.ENUM representing the different status values a replication task can have.Service to download container data from other datanodes.Imports container from tarball.Contract to prepare provide the container in binary form..Service to do the real replication task.Client-side interface for sending a container to a target datanode.Defines compression algorithm for container replication.Default replication implementation.Uploads container to target datanode via gRPC.Observes gRPC response for SendContainer request, notifies callback on completion/error.this class wrap the request stream observer and handle error reported by ratis to response handler.Client to read container data from gRPC.gRPC stream observer to CompletableFuture adapter.Service to make containers available for replication.ContainerReplicator wrapper with additional metrics.A naive implementation of the replication source which creates a tar file on-demand without pre-create the compressed archives.Pushes the container to the target datanode.Separated network server for server2server container replication.Replication-related configuration.Single point to schedule the downloading tasks based on priorities.Builder for
ReplicationSupervisor.Metrics source to report number of replication tasks.The task to download a container from the sources.Simple ContainerDownloaderImplementation to download the missing container from the first available datanode.