Type: New Feature
Affects Version/s: 0.18.0
Fix Version/s: 0.19.1
Release Note:This patch changes the DatanodeProtocoal version number from 18 to 19. The patch allows NameNode to send both block replication and deletion request to a DataNode in response to a heartbeat.
Currently NameNode favors block replication requests over deletion requests. On reply to a heartbeat, NameNode does not send a block deletion request unless there is no block replication request.
This brings a problem when a near-full cluster loses a bunch of DataNodes. In react to the DataNode loss, NameNode starts to replicate blocks. However, replication takes a lot of cpu and a lot of replications fail because of the lack of disk space. So the administrator tries to delete some DFS files to free up space. However, block deletion requests get delayed for very long time because it takes a long time to drain the block replication requests for most DataNodes.
I'd like to propose to let NameNode to send both replication requests and deletion requests to DataNodes in one reply to a heartbeat. This also implies that the replication monitor should schedule both replication and deletion work in one iteration.
|Field||Original Value||New Value|
|Assignee||Hairong Kuang [ hairong ]|
|Affects Version/s||0.18.0 [ 12312972 ]|
|Fix Version/s||0.21.0 [ 12313563 ]|
|Fix Version/s||0.19.1 [ 12313473 ]|
|Summary||NameNode should send both both replication and deletion requests to DataNode in one reply to a heartbeat||NameNode should send both replication and deletion requests to DataNode in one reply to a heartbeat|
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Release Note||This patch changes the DatanodeProtocoal version number from 18 to 19. The patch allows NameNode to send both block replication and deletion request to a DataNode in response to a heartbeat.|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Component/s||dfs [ 12310710 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|14d 10h 31m||1||Hairong Kuang||29/Jan/09 06:01|
|4d 13h 15m||1||Hairong Kuang||02/Feb/09 19:16|
|22d 4h 20m||1||Nigel Daley||24/Feb/09 23:37|