mirror of https://github.com/apache/druid.git
1-based counts in ZkCoordinator (#4917)
This commit is contained in:
parent
b20e3038b6
commit
e725ff4146
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue