|
@@ -1209,13 +1209,8 @@ public class TestReplicationPolicy {
|
|
|
BlockManager bm = new BlockManager(mockNS, new HdfsConfiguration());
|
|
|
UnderReplicatedBlocks underReplicatedBlocks = bm.neededReplications;
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
- Block block1 = new Block(ThreadLocalRandom.current().nextLong());
|
|
|
- Block block2 = new Block(ThreadLocalRandom.current().nextLong());
|
|
|
-=======
|
|
|
- BlockInfo block1 = genBlockInfo(random.nextLong());
|
|
|
- BlockInfo block2 = genBlockInfo(random.nextLong());
|
|
|
->>>>>>> 3e6f458... HDFS-7912. Erasure Coding: track BlockInfo instead of Block in UnderReplicatedBlocks and PendingReplicationBlocks. Contributed by Jing Zhao.
|
|
|
+ BlockInfo block1 = genBlockInfo(ThreadLocalRandom.current().nextLong());
|
|
|
+ BlockInfo block2 = genBlockInfo(ThreadLocalRandom.current().nextLong());
|
|
|
|
|
|
// Adding QUEUE_UNDER_REPLICATED block
|
|
|
underReplicatedBlocks.add(block1, 0, 1, 1);
|
|
@@ -1277,13 +1272,8 @@ public class TestReplicationPolicy {
|
|
|
BlockManager bm = new BlockManager(mockNS, new HdfsConfiguration());
|
|
|
UnderReplicatedBlocks underReplicatedBlocks = bm.neededReplications;
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
- Block block1 = new Block(ThreadLocalRandom.current().nextLong());
|
|
|
- Block block2 = new Block(ThreadLocalRandom.current().nextLong());
|
|
|
-=======
|
|
|
- BlockInfo block1 = genBlockInfo(random.nextLong());
|
|
|
- BlockInfo block2 = genBlockInfo(random.nextLong());
|
|
|
->>>>>>> 3e6f458... HDFS-7912. Erasure Coding: track BlockInfo instead of Block in UnderReplicatedBlocks and PendingReplicationBlocks. Contributed by Jing Zhao.
|
|
|
+ BlockInfo block1 = genBlockInfo(ThreadLocalRandom.current().nextLong());
|
|
|
+ BlockInfo block2 = genBlockInfo(ThreadLocalRandom.current().nextLong());
|
|
|
|
|
|
// Adding QUEUE_UNDER_REPLICATED block
|
|
|
underReplicatedBlocks.add(block1, 0, 1, 1);
|