LOG.debug(MessageFormat.format(
"Start directio job setup: datasource={0} (job={1})",
id,
jobContext.getJobID()));
}
OutputTransactionContext context = HadoopDataSourceUtil.createContext(jobContext, id);
try {
DirectDataSource repo = repository.getRelatedDataSource(containerPath);
repo.setupTransactionOutput(context);
} catch (IOException e) {
LOG.error(MessageFormat.format(
"Failed directio job setup: datasource={0} (job={1})",
id,
jobContext.getJobID()), e);
throw e;
} catch (InterruptedException e) {
throw (IOException) new InterruptedIOException(MessageFormat.format(
"Interrupted while setup transaction: {0}, (path={1})",
context.getTransactionId(),
containerPath)).initCause(e);
}
context.getCounter().add(1);
}
if (LOG.isDebugEnabled()) {
LOG.debug(MessageFormat.format(
"Finish directio job setup: job={0}",
jobContext.getJobID()));