Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ public int getCachedBalancerThreadNumber()
{
return cachedBalancerThreadNumber;
}

@VisibleForTesting
public ListeningExecutorService getBalancerExec()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,9 @@ public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
{
log.debug("Starting coordination. Getting used segments.");

DataSourcesSnapshot dataSourcesSnapshot = params.getDataSourcesSnapshot();
for (DataSegment segment : dataSourcesSnapshot.iterateAllUsedSegmentsInSnapshot()) {
if (segment.getSize() < 0) {
log.makeAlert("No size on a segment")
.addData("segment", segment)
.emit();
}
}

// Log info about all used segments
// Log info about all used segments only if debug logging is enabled
if (log.isDebugEnabled()) {
DataSourcesSnapshot dataSourcesSnapshot = params.getDataSourcesSnapshot();
log.debug("Used Segments");
for (DataSegment dataSegment : dataSourcesSnapshot.iterateAllUsedSegmentsInSnapshot()) {
log.debug(" %s", dataSegment);
Expand Down