Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Currently the BlockManager is managing all replication logic for over- , under- and mis-replicated blocks. This jira proposes to move that code to a new class named ReplicationManager for cleaner code logic, shorter source files, and easier lock separating work in future.
The ReplicationManager is a package local class, providing BlockManager with methods that accesses its internal data structures of replication queue. Meanwhile, the class maintains the lifecycle of replicationThread and replicationQueuesInitializer daemon.