change summary of segment failures to one per line

This commit is contained in:
fjy 2013-08-12 13:15:35 -07:00
parent dd20950f8a
commit a39eb65edb
1 changed files with 3 additions and 1 deletions

View File

@ -314,7 +314,9 @@ public class ZkCoordinator implements DataSegmentChangeHandler
}
if (!segmentFailures.isEmpty()) {
log.error("Exception loading segments: %s", segmentFailures);
for (String segmentFailure : segmentFailures) {
log.error("%s failed to load", segmentFailure);
}
throw new SegmentLoadingException("%,d errors seen while loading segments", segmentFailures.size());
}
}