FAQ
FSNamesystem.getBlockLocations sets access time without holding the namespace locks
-----------------------------------------------------------------------------------

Key: HADOOP-4986
URL: https://issues.apache.org/jira/browse/HADOOP-4986
Project: Hadoop Core
Issue Type: Bug
Components: dfs
Affects Versions: 0.19.0
Reporter: Tsz Wo (Nicholas), SZE
Priority: Blocker


After the access time feature is added to HDFS, FSNamesystem.getBlockLocations(..) is no longer a read only namespace operation. It changes the namespace by updating the access time. However, the thread does not own namespace locks. This may lead to namespace inconsistency.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Tsz Wo (Nicholas), SZE (JIRA) at Jan 7, 2009 at 7:41 pm
    [ https://issues.apache.org/jira/browse/HADOOP-4986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Tsz Wo (Nicholas), SZE resolved HADOOP-4986.
    --------------------------------------------

    Resolution: Invalid

    getBlockLocationsInternal is already synchronized. How come I have missed this?
    FSNamesystem.getBlockLocations sets access time without holding the namespace locks
    -----------------------------------------------------------------------------------

    Key: HADOOP-4986
    URL: https://issues.apache.org/jira/browse/HADOOP-4986
    Project: Hadoop Core
    Issue Type: Bug
    Components: dfs
    Affects Versions: 0.19.0
    Reporter: Tsz Wo (Nicholas), SZE
    Priority: Blocker

    After the access time feature is added to HDFS, FSNamesystem.getBlockLocations(..) is no longer a read only namespace operation. It changes the namespace by updating the access time. However, the thread does not own namespace locks. This may lead to namespace inconsistency.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJan 7, '09 at 2:46a
activeJan 7, '09 at 7:41p
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Tsz Wo (Nicholas), SZE (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase