[
https://issues.apache.org/jira/browse/HADOOP-3310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598938#action_12598938
]
dhruba borthakur commented on HADOOP-3310:
------------------------------------------
Other issues that came to my mind:
1. I am making changes to the DFDClient. When the DFSClient encounters an
error in the pipeline, it eliminates the bad node from the pipeline and needs
to stamp all known good replicas with the new generation stamp. The DFSClient
will invoke LeaseManager.recoverBlock. This method make a two RPC calls to the
namenode : getNextGenerationStamp and commitBlockSynchronization. These two
methods are part of the DataodeProtocol. The problem is that when this is
invoked by the DFSClient, these two RPCs should also be available thru the
ClientProtocol. Can this be arranged?
2. internalReleaseLease invokes lease.renew(). Instead,
LeaseManager.removeExpiredLease() should invoke lease.renew(). The reason being
that a lease actually corresponds to multiple files.
3. removeExpiredLease is also invoked from startFileInternal. In this case,
only one file in the lease should be recovered. The current code recovers all
the files in the lease.
> Lease recovery for append
> -------------------------
>
> Key: HADOOP-3310
> URL: https://issues.apache.org/jira/browse/HADOOP-3310
> Project: Hadoop Core
> Issue Type: New Feature
> Components: dfs
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: 3310_20080514.patch, 3310_20080516b.patch,
> 3310_20080516c.patch, 3310_20080519.patch, 3310_20080519b.patch,
> 3310_20080520.patch, 3310_20080521.patch
>
>
> In order to support file append, a GenerationStamp is associated with each
> block. Lease recovery will be performed when there is a possibility that the
> replicas of a block in a lease may have different GenerationStamp values.
> For more details, see the documentation in HADOOP-1700.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.