MCPcopy Create free account
hub / github.com/dgraph-io/dgraph4j / commit

Method commit

src/main/java/io/dgraph/Transaction.java:204–209  ·  view source on GitHub ↗

Commits any mutations that have been made in the transaction. Once Commit has been called, the lifespan of the transaction is complete. Errors could be thrown for various reasons. Notably, a StatusRuntimeException could be thrown if transactions that modify the same data are being run concurrent

()

Source from the content-addressed store, hash-verified

202 * user to decide if they wish to retry. In this case, the user should create a new transaction.
203 */
204 public void commit() {
205 Exceptions.withExceptionUnwrapped(
206 () -> {
207 asyncTransaction.commit().join();
208 });
209 }
210
211 /**
212 * Cleans up the resources associated with an uncommitted transaction that contains mutations. It

Callers 14

mainMethod · 0.95
doSetupTransactionMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
testConflictExceptionMethod · 0.95
testFinishedExceptionMethod · 0.95
testInsert3QuadsMethod · 0.95
runTransactionsMethod · 0.95
createAccountsMethod · 0.95
runTxnMethod · 0.95
tryUpsertMethod · 0.95
testDeleteMethod · 0.45

Calls 1

Tested by 10

testConflictExceptionMethod · 0.76
testFinishedExceptionMethod · 0.76
testInsert3QuadsMethod · 0.76
runTransactionsMethod · 0.76
createAccountsMethod · 0.76
runTxnMethod · 0.76
tryUpsertMethod · 0.76
testDeleteMethod · 0.36
testDeleteMethod · 0.36