public class TestFileLink extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestFileLink.MyDistributedFileSystem |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
Constructor and Description |
---|
TestFileLink() |
Modifier and Type | Method and Description |
---|---|
private static void |
dataVerify(byte[] data,
int n,
byte v)
Verify that all bytes in 'data' have 'v' as value.
|
private static void |
skipBuffer(org.apache.hadoop.fs.FSDataInputStream in,
byte v) |
void |
testEquals() |
void |
testHashCode() |
void |
testHDFSLinkReadDuringDelete()
Test that link is still readable even when the current file gets deleted.
|
void |
testHDFSLinkReadDuringRename()
Test, on HDFS, that the FileLink is still readable
even when the current file gets renamed.
|
private void |
testLinkReadDuringRename(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
Test that link is still readable even when the current file gets renamed.
|
void |
testLinkReadWithMissingFile() |
void |
testLocalLinkReadDuringRename()
Test, on a local filesystem, that the FileLink is still readable
even when the current file gets renamed.
|
private void |
writeSomeData(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
long size,
byte v)
Write up to 'size' bytes with value 'v' into a new file called 'path'.
|
public static final HBaseClassTestRule CLASS_RULE
public TestFileLink()
public void testEquals()
public void testHashCode()
public void testHDFSLinkReadDuringRename() throws Exception
Exception
public void testLinkReadWithMissingFile() throws Exception
Exception
public void testLocalLinkReadDuringRename() throws IOException
IOException
private void testLinkReadDuringRename(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) throws IOException
IOException
public void testHDFSLinkReadDuringDelete() throws Exception
Exception
private void writeSomeData(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, long size, byte v) throws IOException
IOException
private static void dataVerify(byte[] data, int n, byte v)
private static void skipBuffer(org.apache.hadoop.fs.FSDataInputStream in, byte v) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.