FAQ
create(file, true) appears to be violating atomicity
----------------------------------------------------

Key: HDFS-1563
URL: https://issues.apache.org/jira/browse/HDFS-1563
Project: Hadoop HDFS
Issue Type: Bug
Components: name-node
Affects Versions: 0.20.1
Reporter: Guanghao Shen
Assignee: dhruba borthakur


Will upload a unittest to reveal this bug.

In a word, when a thread is doing create(file, true) on existing file, there are chances that another thread will get 'false' for exists(file) during the period.

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

Search Discussions

  • dhruba borthakur (JIRA) at Jan 3, 2011 at 7:56 am
    [ https://issues.apache.org/jira/browse/HDFS-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    dhruba borthakur resolved HDFS-1563.
    ------------------------------------

    Resolution: Won't Fix

    I vote that we keep the semantics of the create(overwrite==true) the same as it is now. Please reopen this JIRA if you strongly feel otherwise.
    create(file, true) appears to be violating atomicity
    ----------------------------------------------------

    Key: HDFS-1563
    URL: https://issues.apache.org/jira/browse/HDFS-1563
    Project: Hadoop HDFS
    Issue Type: Bug
    Components: name-node
    Affects Versions: 0.20.1
    Reporter: Guanghao Shen
    Assignee: dhruba borthakur
    Attachments: unittest.diff


    Will upload a unittest to reveal this bug.
    In a word, when a thread is doing create(file, true) on existing file, there are chances that another thread will get 'false' for exists(file) during the period.
    --
    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
grouphdfs-dev @
categorieshadoop
postedDec 30, '10 at 8:01a
activeJan 3, '11 at 7:56a
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

dhruba borthakur (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase