if (log.isTraceEnabled()) {
log.tracef("Successfully inserted %d buckets into the database, batch size is %d", readCount, batchSize);
}
} catch (IOException ex) {
log.ioErrorIntegratingState(ex);
throw new CacheLoaderException("I/O failure while integrating state into store", ex);
} catch (SQLException e) {
log.sqlFailureIntegratingState(e);
throw new CacheLoaderException("SQL failure while integrating state into store", e);
} catch (ClassNotFoundException e) {
log.classNotFoundIntegratingState(e);
throw new CacheLoaderException("Unexpected failure while integrating state into store", e);
} catch (InterruptedException ie) {
if (log.isTraceEnabled()) log.trace("Interrupted while reading from stream");
Thread.currentThread().interrupt();
} finally {
JdbcUtil.safeClose(ps);