Package org.apache.hadoop.hbase.fs
Class HFileSystem.ReorderWALBlocks
java.lang.Object
org.apache.hadoop.hbase.fs.HFileSystem.ReorderWALBlocks
- All Implemented Interfaces:
HFileSystem.ReorderBlocks
- Enclosing class:
- HFileSystem
We're putting at lowest priority the wal files blocks that are on the same datanode as the
original regionserver which created these files. This because we fear that the datanode is
actually dead, so if we use it it will timeout.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reorderBlocks
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.protocol.LocatedBlocks lbs, String src)
-
Constructor Details
-
ReorderWALBlocks
-
-
Method Details
-
reorderBlocks
public void reorderBlocks(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.protocol.LocatedBlocks lbs, String src) throws IOException - Specified by:
reorderBlocks
in interfaceHFileSystem.ReorderBlocks
- Parameters:
conf
- - the conf to uselbs
- - the LocatedBlocks to reordersrc
- - the file name currently read- Throws:
IOException
- - if something went wrong
-