[ 
https://issues.apache.org/jira/browse/HDFS-16754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18035179#comment-18035179
 ] 

ASF GitHub Bot commented on HDFS-16754:
---------------------------------------

github-actions[bot] commented on PR #4840:
URL: https://github.com/apache/hadoop/pull/4840#issuecomment-3483176812

   We're closing this stale PR because it has been open for 100 days with no 
activity. This isn't a judgement on the merit of the PR in any way. It's just a 
way of keeping the PR queue manageable.
   If you feel like this was a mistake, or you would like to continue working 
on it, please feel free to re-open it and ask for a committer to remove the 
stale tag and review again.
   Thanks all for your contribution.




> UnderConstruct file with missingBlock should be able to recover lease
> ---------------------------------------------------------------------
>
>                 Key: HDFS-16754
>                 URL: https://issues.apache.org/jira/browse/HDFS-16754
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: ZanderXu
>            Assignee: ZanderXu
>            Priority: Major
>              Labels: pull-request-available
>
> During looking into the logic of RecoverLease, I guess there is a bug:
> {code:java}
> int nrCompleteBlocks;
> BlockInfo curBlock = null;
> for(nrCompleteBlocks = 0; nrCompleteBlocks < nrBlocks; nrCompleteBlocks++) {
>   curBlock = blocks[nrCompleteBlocks];
>   if(!curBlock.isComplete())
>     break;
>   // Why?
>   assert blockManager.hasMinStorage(curBlock) :
>           "A COMPLETE block is not minimally replicated in " + src;
> } {code}
> RecoverLease just try to align all replicas of the last block of one 
> UnderConstruct file.
> So if the UC file with some completed blocks, which may missed all replicas, 
> should be able to recoverLease.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to