Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ void loadINodeSectionInParallel(ExecutorService service,
CountDownLatch latch = new CountDownLatch(sections.size());
AtomicInteger totalLoaded = new AtomicInteger(0);
final List<IOException> exceptions = Collections.synchronizedList(new ArrayList<>());
Counter counter = prog.getCounter(Phase.LOADING_FSIMAGE, currentStep);

for (int i=0; i < sections.size(); i++) {
FileSummary.Section s = sections.get(i);
Expand All @@ -433,9 +434,7 @@ void loadINodeSectionInParallel(ExecutorService service,
}
service.submit(() -> {
try {
totalLoaded.addAndGet(loadINodesInSection(ins, null));
prog.setCount(Phase.LOADING_FSIMAGE, currentStep,
totalLoaded.get());
totalLoaded.addAndGet(loadINodesInSection(ins, counter));
} catch (Exception e) {
LOG.error("An exception occurred loading INodes in parallel", e);
exceptions.add(new IOException(e));
Expand Down
Loading