1-based counts in ZkCoordinator (#4917)

This commit is contained in:
Roman Leventov 2017-10-10 15:00:51 -05:00 committed by Charles Allen
parent b20e3038b6
commit e725ff4146
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ public class ZkCoordinator implements DataSegmentChangeHandler
int ignored = 0;
for (int i = 0; i < segmentsToLoad.length; i++) {
File file = segmentsToLoad[i];
log.info("Loading segment cache file [%d/%d][%s].", i, segmentsToLoad.length, file);
log.info("Loading segment cache file [%d/%d][%s].", i + 1, segmentsToLoad.length, file);
try {
final DataSegment segment = jsonMapper.readValue(file, DataSegment.class);
@ -407,7 +407,7 @@ public class ZkCoordinator implements DataSegmentChangeHandler
try {
log.info(
"Loading segment[%d/%d][%s]",
counter.getAndIncrement(),
counter.incrementAndGet(),
numSegments,
segment.getIdentifier()
);