HDFS-8806. Inconsistent metrics: number of missing blocks with replication factor 1 not properly cleared. Contributed by Zhe Zhang.
(cherry picked from commit206d4933a5
) (cherry picked from commitb2a532f61c
)
This commit is contained in:
parent
65af0dffa5
commit
b919c1c044
|
@ -19,7 +19,10 @@ Release 2.7.2 - UNRELEASED
|
||||||
HDFS-6945. BlockManager should remove a block from excessReplicateMap and
|
HDFS-6945. BlockManager should remove a block from excessReplicateMap and
|
||||||
decrement ExcessBlocks metric when the block is removed. (aajisaka)
|
decrement ExcessBlocks metric when the block is removed. (aajisaka)
|
||||||
|
|
||||||
Release 2.7.1 - 2015-07-06
|
HDFS-8806. Inconsistent metrics: number of missing blocks with replication
|
||||||
|
factor 1 not properly cleared. (Zhe Zhang via aajisaka)
|
||||||
|
|
||||||
|
Release 2.7.1 - 2015-07-06
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
||||||
|
|
|
@ -101,10 +101,11 @@ class UnderReplicatedBlocks implements Iterable<Block> {
|
||||||
/**
|
/**
|
||||||
* Empty the queues.
|
* Empty the queues.
|
||||||
*/
|
*/
|
||||||
void clear() {
|
synchronized void clear() {
|
||||||
for (int i = 0; i < LEVEL; i++) {
|
for (int i = 0; i < LEVEL; i++) {
|
||||||
priorityQueues.get(i).clear();
|
priorityQueues.get(i).clear();
|
||||||
}
|
}
|
||||||
|
corruptReplOneBlocks = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return the total number of under replication blocks */
|
/** Return the total number of under replication blocks */
|
||||||
|
|
Loading…
Reference in New Issue