Skip to content

Commit

Permalink
1-based counts in ZkCoordinator (apache#4917)
Browse files Browse the repository at this point in the history
  • Loading branch information
leventov authored and drcrallen committed Oct 10, 2017
1 parent b20e303 commit e725ff4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public void loadLocalCache()
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);

Expand Down Expand Up @@ -407,7 +407,7 @@ public void run()
try {
log.info(
"Loading segment[%d/%d][%s]",
counter.getAndIncrement(),
counter.incrementAndGet(),
numSegments,
segment.getIdentifier()
);
Expand Down

0 comments on commit e725ff4

Please sign in to comment.