[ http://issues.apache.org/jira/browse/HADOOP-652?page=all ]
Vladimir Krokhmalyov updated HADOOP-652:
----------------------------------------
Status: Patch Available (was: Open)
Affects Version/s: 0.9.0
(was: 0.8.0)
Yes. Synchronization in FSDataset already changed. But I think synchronized
block in invalidate() method should be smaller, because getFile() call is
already synchronized and f.delete() call may be blocked in OS in some
situations. So I submit the patch with these changes and with "-u" option, as
you instruct me.
> Not all Datastructures are updated when a block is deleted
> ----------------------------------------------------------
>
> Key: HADOOP-652
> URL: http://issues.apache.org/jira/browse/HADOOP-652
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.9.0
> Reporter: Raghu Angadi
> Attachments: FSDataset.java.patch
>
>
> Currently when a block is deleted, DataNode just deletes the physical file
> and updates its map. We need to update more things. For e.g. numBlocks in
> FSDir is not decremented.. effect of this would be that we will create more
> subdirectories than necessary. It might not show up badly yet since numBlocks
> gets correct value when the dataNode restarts. I have to see what else needs
> to be updated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira