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

Rakesh R commented on HDFS-8493:
--------------------------------

bq. The resolution should be in the lock of FSDirectory.
I've tried an attempt by moving {{fsd.writeLock}} before resolving the path 
{{fsd.resolvePath}}. With this patch it would increase locking time as it will 
hold the lock more time than previously. IIUC this is required as it needs to 
cover the path resolution under lock. Attached patch to this jira. Kindly 
review the changes again, Thanks!

> Consolidate truncate() related implementation in a single class
> ---------------------------------------------------------------
>
>                 Key: HDFS-8493
>                 URL: https://issues.apache.org/jira/browse/HDFS-8493
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Haohui Mai
>            Assignee: Rakesh R
>         Attachments: HDFS-8493-001.patch, HDFS-8493-002.patch, 
> HDFS-8493-003.patch, HDFS-8493-004.patch, HDFS-8493-005.patch, 
> HDFS-8493-006.patch, HDFS-8493-007.patch
>
>
> This jira proposes to consolidate truncate() related methods into a single 
> class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to