How to write test cases for ensuing stream's/socket's closure either in catch block or finally block

2011-01-17 Thread bhallamudi kamesh
Hi All, How to write test cases for the scenarios such as throwing an IOException from the try block and ensuing that corresponding stream's/socket's closure either in catch block or in finally block. Do we need to write test cases for these scenarios in order to submit patches? Thanks in

Hadoop-Hdfs-trunk - Build # 555 - Still Failing

2011-01-17 Thread Apache Hudson Server
See https://hudson.apache.org/hudson/job/Hadoop-Hdfs-trunk/555/ ### ## LAST 60 LINES OF THE CONSOLE ### [...truncated 339322 lines...] [junit] 2011-01-17 12:08:32,62

Re: How to write test cases for ensuing stream's/socket's closure either in catch block or finally block

2011-01-17 Thread Konstantin Boudnik
Moving hdfs-dev@ and mapreduce-dev@ to Bcc: to avoid cross-postings. >From what I understand you want to have a test case which demonstrates that whatever socket/stream connections were opened are properly closed in case of IOException? I guess one of many possibilities would be to check if a conn