Skip to content
Merged
Show file tree
Hide file tree
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 @@ -633,7 +633,7 @@ public void doRun()
persist(persistIndex, interval, file, progressIndicator);
}
catch (Exception e) {
log.error("persist index error", e);
log.error(e, "persist index error");
throw Throwables.propagate(e);
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ public org.apache.hadoop.mapred.InputFormat get()
};

@VisibleForTesting
DatasourceInputFormat setSupplier(Supplier<org.apache.hadoop.mapred.InputFormat> supplier) {
DatasourceInputFormat setSupplier(Supplier<org.apache.hadoop.mapred.InputFormat> supplier)
{
this.supplier = supplier;
return this;
}
Expand All @@ -160,7 +161,7 @@ private DatasourceInputSplit toDataSourceSplit(
locations = getFrequentLocations(segments, fio, conf);
}
catch (Exception e) {
logger.error("Exception thrown finding location of splits", e);
logger.error(e, "Exception thrown finding location of splits");
}
return new DatasourceInputSplit(segments, locations);
}
Expand All @@ -181,7 +182,8 @@ private String[] getFrequentLocations(
return getFrequentLocations(locations);
}

private static String[] getFrequentLocations(Iterable<String> hosts) {
private static String[] getFrequentLocations(Iterable<String> hosts)
{

final CountingMap<String> counter = new CountingMap<>();
for (String location : hosts) {
Expand Down