Uses of Class
org.apache.bookkeeper.replication.ReplicationException.UnavailableException
Packages that use ReplicationException.UnavailableException
Package
Description
BookKeeper Client.
Classes for interacting with bookkeeper ledgers and ledger metadata.
Classes related to the Bookkeeper protocol.
Classes for replicating Bookkeeper data.
-
Uses of ReplicationException.UnavailableException in org.apache.bookkeeper.client
Methods in org.apache.bookkeeper.client that throw ReplicationException.UnavailableExceptionModifier and TypeMethodDescriptionvoidBookKeeperAdmin.decommissionBookie(BookieId bookieAddress) Triggers AuditTask by resetting lostBookieRecoveryDelay and then make sure the ledgers stored in the given decommissioning bookie are properly replicated and they are not underreplicated because of the given bookie.intBookKeeperAdmin.getLostBookieRecoveryDelay()Returns the current LostBookieRecoveryDelay value (in seconds) in Zookeeper.voidBookKeeperAdmin.setLostBookieRecoveryDelay(int lostBookieRecoveryDelay) Setter for LostBookieRecoveryDelay value (in seconds) in Zookeeper.voidBookKeeperAdmin.triggerAudit()Trigger AuditTask by resetting lostBookieRecoveryDelay to its current value. -
Uses of ReplicationException.UnavailableException in org.apache.bookkeeper.meta
Methods in org.apache.bookkeeper.meta that throw ReplicationException.UnavailableExceptionModifier and TypeMethodDescriptionstatic StringZkLedgerUnderreplicationManager.acquireUnderreplicatedLedgerLock(org.apache.zookeeper.ZooKeeper zkc, String zkLedgersRootPath, long ledgerId, List<org.apache.zookeeper.data.ACL> zkAcls) Acquire the underreplicated ledger lock.voidLedgerUnderreplicationManager.close()Release all resources held by the ledger underreplication manager.voidZkLedgerUnderreplicationManager.close()voidLedgerUnderreplicationManager.disableLedgerReplication()Stop ledger replication.voidZkLedgerUnderreplicationManager.disableLedgerReplication()voidLedgerUnderreplicationManager.enableLedgerReplication()Resuming ledger replication.voidZkLedgerUnderreplicationManager.enableLedgerReplication()longLedgerUnderreplicationManager.getCheckAllLedgersCTime()Getter for the CheckAllLedgers last executed ctime.longZkLedgerUnderreplicationManager.getCheckAllLedgersCTime()longLedgerUnderreplicationManager.getLedgerToRereplicate()Acquire a underreplicated ledger for rereplication.longNullMetadataBookieDriver.NullLedgerUnderreplicationManager.getLedgerToRereplicate()longZkLedgerUnderreplicationManager.getLedgerToRereplicate()LedgerUnderreplicationManager.getLedgerUnreplicationInfo(long ledgerId) Get the UnderreplicatedLedger info if this ledger is marked underreplicated otherwise it returns null.NullMetadataBookieDriver.NullLedgerUnderreplicationManager.getLedgerUnreplicationInfo(long ledgerId) ZkLedgerUnderreplicationManager.getLedgerUnreplicationInfo(long ledgerId) intLedgerUnderreplicationManager.getLostBookieRecoveryDelay()Getter for the lostBookieRecoveryDelay.intZkLedgerUnderreplicationManager.getLostBookieRecoveryDelay()longLedgerUnderreplicationManager.getPlacementPolicyCheckCTime()Getter for the PlacementPolicyCheck last executed ctime.longZkLedgerUnderreplicationManager.getPlacementPolicyCheckCTime()longLedgerUnderreplicationManager.getReplicasCheckCTime()Getter for the ReplicasCheck last executed ctime.longZkLedgerUnderreplicationManager.getReplicasCheckCTime()LedgerUnderreplicationManager.getReplicationWorkerIdRereplicatingLedger(long ledgerId) If a replicationworker has acquired lock on an underreplicated ledger, then getReplicationWorkerIdRereplicatingLedger should return ReplicationWorkerId (BookieId) of the ReplicationWorker that is holding lock.NullMetadataBookieDriver.NullLedgerUnderreplicationManager.getReplicationWorkerIdRereplicatingLedger(long ledgerId) ZkLedgerUnderreplicationManager.getReplicationWorkerIdRereplicatingLedger(long ledgerId) booleanLedgerUnderreplicationManager.initializeLostBookieRecoveryDelay(int lostBookieRecoveryDelay) Creates the zNode for lostBookieRecoveryDelay with the specified value and returns true.booleanZkLedgerUnderreplicationManager.initializeLostBookieRecoveryDelay(int lostBookieRecoveryDelay) booleanLedgerUnderreplicationManager.isLedgerReplicationEnabled()Check whether the ledger replication is enabled or not.booleanZkLedgerUnderreplicationManager.isLedgerReplicationEnabled()voidLedgerUnderreplicationManager.markLedgerReplicated(long ledgerId) Mark a ledger as fully replicated.voidNullMetadataBookieDriver.NullLedgerUnderreplicationManager.markLedgerReplicated(long ledgerId) voidZkLedgerUnderreplicationManager.markLedgerReplicated(long ledgerId) FlatLedgerManagerFactory.newLedgerUnderreplicationManager()Deprecated.LedgerManagerFactory.newLedgerUnderreplicationManager()Return a ledger underreplication manager, which is used to mark ledgers as unreplicated, and to retrieve a ledger which is underreplicated so that it can be rereplicated.LegacyHierarchicalLedgerManagerFactory.newLedgerUnderreplicationManager()MSLedgerManagerFactory.newLedgerUnderreplicationManager()Deprecated.voidLedgerUnderreplicationManager.notifyLedgerReplicationEnabled(BookkeeperInternalCallbacks.GenericCallback<Void> cb) Receive notification asynchronously when the ledger replication process is enabled.voidZkLedgerUnderreplicationManager.notifyLedgerReplicationEnabled(BookkeeperInternalCallbacks.GenericCallback<Void> cb) voidLedgerUnderreplicationManager.notifyLostBookieRecoveryDelayChanged(BookkeeperInternalCallbacks.GenericCallback<Void> cb) Receive notification asynchronously when the lostBookieRecoveryDelay value is Changed.voidZkLedgerUnderreplicationManager.notifyLostBookieRecoveryDelayChanged(BookkeeperInternalCallbacks.GenericCallback<Void> cb) default voidLedgerUnderreplicationManager.notifyUnderReplicationLedgerChanged(BookkeeperInternalCallbacks.GenericCallback<Void> cb) Deprecated.voidZkLedgerUnderreplicationManager.notifyUnderReplicationLedgerChanged(BookkeeperInternalCallbacks.GenericCallback<Void> cb) longLedgerUnderreplicationManager.pollLedgerToRereplicate()Poll for a underreplicated ledger to rereplicate.longNullMetadataBookieDriver.NullLedgerUnderreplicationManager.pollLedgerToRereplicate()longZkLedgerUnderreplicationManager.pollLedgerToRereplicate()voidLedgerUnderreplicationManager.releaseUnderreplicatedLedger(long ledgerId) Release a previously acquired ledger.voidZkLedgerUnderreplicationManager.releaseUnderreplicatedLedger(long ledgerId) voidLedgerUnderreplicationManager.setCheckAllLedgersCTime(long checkAllLedgersCTime) Setter for the CheckAllLedgers last executed ctime.voidZkLedgerUnderreplicationManager.setCheckAllLedgersCTime(long checkAllLedgersCTime) voidLedgerUnderreplicationManager.setLostBookieRecoveryDelay(int lostBookieRecoveryDelay) Setter for the lostBookieRecoveryDelay znode.voidZkLedgerUnderreplicationManager.setLostBookieRecoveryDelay(int lostBookieRecoveryDelay) voidLedgerUnderreplicationManager.setPlacementPolicyCheckCTime(long placementPolicyCheckCTime) Setter for the PlacementPolicyCheck last executed ctime.voidZkLedgerUnderreplicationManager.setPlacementPolicyCheckCTime(long placementPolicyCheckCTime) voidLedgerUnderreplicationManager.setReplicasCheckCTime(long replicasCheckCTime) Setter for the ReplicasCheck last executed ctime.voidZkLedgerUnderreplicationManager.setReplicasCheckCTime(long replicasCheckCTime) Constructors in org.apache.bookkeeper.meta that throw ReplicationException.UnavailableExceptionModifierConstructorDescriptionZkLedgerUnderreplicationManager(AbstractConfiguration conf, org.apache.zookeeper.ZooKeeper zkc) -
Uses of ReplicationException.UnavailableException in org.apache.bookkeeper.proto
Methods in org.apache.bookkeeper.proto that throw ReplicationException.UnavailableExceptionModifier and TypeMethodDescriptionstatic BookieServerBookieServer.newBookieServer(ServerConfiguration conf, Bookie bookie, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, UncleanShutdownDetection uncleanShutdownDetection) Constructors in org.apache.bookkeeper.proto that throw ReplicationException.UnavailableExceptionModifierConstructorDescriptionBookieServer(ServerConfiguration conf, Bookie bookie, StatsLogger statsLogger, io.netty.buffer.ByteBufAllocator allocator, UncleanShutdownDetection uncleanShutdownDetection) -
Uses of ReplicationException.UnavailableException in org.apache.bookkeeper.replication
Modifier and TypeClassDescriptionstatic classThe replication service encountered an error that requires service restart.Methods in org.apache.bookkeeper.replication that return ReplicationException.UnavailableExceptionModifier and TypeMethodDescriptionReplicationException.fromKeeperException(String message, org.apache.zookeeper.KeeperException ke) Methods in org.apache.bookkeeper.replication that throw ReplicationException.UnavailableExceptionModifier and TypeMethodDescription(package private) static BookKeeperprotected booleanAuditorTask.isLedgerReplicationEnabled()protected voidAuditorBookieCheckTask.waitIfLedgerReplicationDisabled()Constructors in org.apache.bookkeeper.replication that throw ReplicationException.UnavailableExceptionModifierConstructorDescriptionAuditor(String bookieIdentifier, ServerConfiguration conf, BookKeeper bkc, boolean ownBkc, BookKeeperAdmin admin, boolean ownAdmin, StatsLogger statsLogger) Auditor(String bookieIdentifier, ServerConfiguration conf, BookKeeper bkc, boolean ownBkc, StatsLogger statsLogger) Auditor(String bookieIdentifier, ServerConfiguration conf, StatsLogger statsLogger) (package private)AuditorCheckAllLedgersTask(ServerConfiguration conf, AuditorStats auditorStats, BookKeeperAdmin admin, LedgerManager ledgerManager, LedgerUnderreplicationManager ledgerUnderreplicationManager, AuditorTask.ShutdownTaskHandler shutdownTaskHandler, BiConsumer<AtomicBoolean, Throwable> hasAuditCheckTask) AuditorElector(String bookieId, ServerConfiguration conf) AuditorElector(String bookieId, ServerConfiguration conf, BookKeeper bkc, boolean ownBkc) AuditorElector for performing the auditor election.AuditorElector(String bookieId, ServerConfiguration conf, BookKeeper bkc, StatsLogger statsLogger, boolean ownBkc) AuditorElector for performing the auditor election.AutoRecoveryMain(ServerConfiguration conf, StatsLogger statsLogger) Replication worker for replicating the ledger fragments from UnderReplicationManager to the targetBookie.(package private)ReplicationWorker(ServerConfiguration conf, BookKeeper bkc, boolean ownBkc, StatsLogger statsLogger) ReplicationWorker(ServerConfiguration conf, StatsLogger statsLogger) Replication worker for replicating the ledger fragments from UnderReplicationManager to the targetBookie. -
Uses of ReplicationException.UnavailableException in org.apache.bookkeeper.tools.cli.commands.autorecovery
Methods in org.apache.bookkeeper.tools.cli.commands.autorecovery that throw ReplicationException.UnavailableExceptionModifier and TypeMethodDescriptionbooleanLostBookieRecoveryDelayCommand.handler(ServerConfiguration conf, LostBookieRecoveryDelayCommand.LBRDFlags flags)