[jira] Commented: (HDFS-827) Additional unit tests for FSDataset

2011-01-02 Thread Konstantin Boudnik (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12976486#action_12976486
 ] 

Konstantin Boudnik commented on HDFS-827:
-

If they so fast shall they be moved to src/test/unit instead?

 Additional unit tests for FSDataset
 ---

 Key: HDFS-827
 URL: https://issues.apache.org/jira/browse/HDFS-827
 Project: Hadoop HDFS
  Issue Type: Test
  Components: data-node, test
Affects Versions: 0.22.0
Reporter: Todd Lipcon
Assignee: Todd Lipcon
 Attachments: hdfs-827.txt


 FSDataset doesn't currently have a unit-test that tests it in isolation of 
 the DN or a cluster. A test specifically for this class will be helpful for 
 developing HDFS-788

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



[jira] Resolved: (HDFS-1563) create(file, true) appears to be violating atomicity

2011-01-02 Thread dhruba borthakur (JIRA)

 [ 
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.