HDFS-3197. Incorrect class comments in a few tests. Contributed by Andy Isaacson

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1338880 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-05-15 20:37:12 +00:00
parent f35294eb95
commit dac828de0f
5 changed files with 11 additions and 9 deletions

View File

@ -77,6 +77,8 @@ Trunk (unreleased changes)
HDFS-3293. Add toString(), equals(..) and hashCode() to JournalInfo. HDFS-3293. Add toString(), equals(..) and hashCode() to JournalInfo.
(Hari Mankude via szetszwo) (Hari Mankude via szetszwo)
HDFS-3197. Incorrect class comments in a few tests. (Andy Isaacson via eli)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-2834. Add a ByteBuffer-based read API to DFSInputStream. HDFS-2834. Add a ByteBuffer-based read API to DFSInputStream.

View File

@ -39,8 +39,7 @@ import org.apache.hadoop.hdfs.server.namenode.NameNode;
import org.apache.log4j.Level; import org.apache.log4j.Level;
/** /**
* This class tests that a file need not be closed before its * This class tests that pipelines survive data node death and recovery.
* data can be read by another client.
*/ */
public class TestDatanodeDeath extends TestCase { public class TestDatanodeDeath extends TestCase {
{ {

View File

@ -38,8 +38,7 @@ import org.apache.hadoop.util.VersionInfo;
import org.junit.Test; import org.junit.Test;
/** /**
* This class tests that a file need not be closed before its * This class tests data node registration.
* data can be read by another client.
*/ */
public class TestDatanodeRegistration { public class TestDatanodeRegistration {

View File

@ -31,11 +31,13 @@ import org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol;
import org.apache.hadoop.io.IOUtils; import org.apache.hadoop.io.IOUtils;
import org.apache.log4j.Level; import org.apache.log4j.Level;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/** /**
* This class tests that a file need not be closed before its * This class tests client lease recovery.
* data can be read by another client.
*/ */
public class TestFileCreationClient extends junit.framework.TestCase { public class TestFileCreationClient {
static final String DIR = "/" + TestFileCreationClient.class.getSimpleName() + "/"; static final String DIR = "/" + TestFileCreationClient.class.getSimpleName() + "/";
{ {
@ -46,6 +48,7 @@ public class TestFileCreationClient extends junit.framework.TestCase {
} }
/** Test lease recovery Triggered by DFSClient. */ /** Test lease recovery Triggered by DFSClient. */
@Test
public void testClientTriggeredLeaseRecovery() throws Exception { public void testClientTriggeredLeaseRecovery() throws Exception {
final int REPLICATION = 3; final int REPLICATION = 3;
Configuration conf = new HdfsConfiguration(); Configuration conf = new HdfsConfiguration();

View File

@ -38,8 +38,7 @@ import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
/** /**
* This class tests that a file need not be closed before its * This class tests that data nodes are correctly replaced on failure.
* data can be read by another client.
*/ */
public class TestReplaceDatanodeOnFailure { public class TestReplaceDatanodeOnFailure {
static final Log LOG = AppendTestUtil.LOG; static final Log LOG = AppendTestUtil.LOG;