In Balancer, the target task should be removed when its size < 0. Contributed by Yiqun Lin
This commit is contained in:
parent
9422515239
commit
8c9b44eaff
@ -795,7 +795,7 @@ public class Dispatcher {
|
|||||||
long blockSize = pendingBlock.reportedBlock.getNumBytes(this);
|
long blockSize = pendingBlock.reportedBlock.getNumBytes(this);
|
||||||
incScheduledSize(-blockSize);
|
incScheduledSize(-blockSize);
|
||||||
task.size -= blockSize;
|
task.size -= blockSize;
|
||||||
if (task.size == 0) {
|
if (task.size <= 0) {
|
||||||
i.remove();
|
i.remove();
|
||||||
}
|
}
|
||||||
return pendingBlock;
|
return pendingBlock;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user