@InterfaceAudience.Private public class ReplicationChecker extends Object
Modifier and Type | Field and Description |
---|---|
private HbckErrorReporter |
errorReporter |
private static org.slf4j.Logger |
LOG |
private ReplicationPeerStorage |
peerStorage |
private ReplicationQueueStorage |
queueStorage |
private Set<String> |
undeletedHFileRefsPeerIds |
private Map<ServerName,List<String>> |
undeletedQueueIds |
Constructor and Description |
---|
ReplicationChecker(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zkw,
HbckErrorReporter errorReporter) |
Modifier and Type | Method and Description |
---|---|
void |
checkUnDeletedQueues() |
void |
fixUnDeletedQueues() |
private Set<String> |
getUndeletedHFileRefsPeers() |
private Map<ServerName,List<String>> |
getUnDeletedQueues() |
boolean |
hasUnDeletedQueues() |
private static final org.slf4j.Logger LOG
private final HbckErrorReporter errorReporter
private Map<ServerName,List<String>> undeletedQueueIds
private Set<String> undeletedHFileRefsPeerIds
private final ReplicationPeerStorage peerStorage
private final ReplicationQueueStorage queueStorage
public ReplicationChecker(org.apache.hadoop.conf.Configuration conf, ZKWatcher zkw, HbckErrorReporter errorReporter)
public boolean hasUnDeletedQueues()
private Map<ServerName,List<String>> getUnDeletedQueues() throws ReplicationException
ReplicationException
private Set<String> getUndeletedHFileRefsPeers() throws ReplicationException
ReplicationException
public void checkUnDeletedQueues() throws ReplicationException
ReplicationException
public void fixUnDeletedQueues() throws ReplicationException
ReplicationException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.