@Override public void rollback() { try { cxn.rollback(); cxn.close(); } catch (Exception e) { throw new RuntimeException(e); } }
if (cxn != null) { try { cxn.rollback(); } finally { cxn.close();
cxn.rollback(); } catch (Throwable t) { log.error(t, t);
cxn.rollback(); } catch (Throwable t) { log.error(t, t);
@Override public Void call() throws Exception { final long begin = System.currentTimeMillis(); BigdataSailRepositoryConnection conn = null; boolean success = false; try { conn = getConnection(); final BigdataGraphBulkLoad graph = new BigdataGraphBulkLoad(conn); GraphMLReader.inputGraph(graph, req.getInputStream()); graph.commit(); success = true; final long nmodified = graph.getMutationCountLastCommit(); final long elapsed = System.currentTimeMillis() - begin; reportModifiedCount(nmodified, elapsed); // Done. return null; } finally { if (conn != null) { if (!success) conn.rollback(); conn.close(); } } }
cxn.rollback(); } catch (RepositoryException e) { log.error(e, e);
cxn.rollback(); } catch (RepositoryException e) { log.error(e, e);
cxn.rollback(); throw ex;
roconn.rollback();
e.printStackTrace(); if(con.isActive()) { con.rollback();
cxn.rollback(); throw ex;
e.printStackTrace(); if(con.isActive()) { con.rollback();