mirror of https://github.com/apache/druid.git
change break to continue in BalancerCostAnalyzer to skip calculating cost when it's not necessary
This commit is contained in:
parent
fcbac96193
commit
429e23d3b2
|
@ -201,7 +201,7 @@ public class BalancerCostAnalyzer
|
||||||
if (proposalSegmentSize > server.getAvailableSize()
|
if (proposalSegmentSize > server.getAvailableSize()
|
||||||
|| server.isServingSegment(proposalSegment)
|
|| server.isServingSegment(proposalSegment)
|
||||||
|| server.isLoadingSegment(proposalSegment)) {
|
|| server.isLoadingSegment(proposalSegment)) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The contribution to the total cost of a given server by proposing to move the segment to that server is... */
|
/** The contribution to the total cost of a given server by proposing to move the segment to that server is... */
|
||||||
|
|
Loading…
Reference in New Issue