Skip to content

Commit 5ce1e27

Browse files
committed
Added serializable to preemptive break out of retry loop.
1 parent 6013edc commit 5ce1e27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/experoinc/janusgraph/diskstorage/foundationdb/FoundationDBTx.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public synchronized void commit() throws BackendException {
118118
failing = false;
119119
break;
120120
} catch (IllegalStateException | ExecutionException e) {
121-
if (isolationLevel.equals(IsolationLevel.READ_COMMITTED_NO_WRITE)) {
121+
if (isolationLevel.equals(IsolationLevel.SERIALIZABLE) ||
122+
isolationLevel.equals(IsolationLevel.READ_COMMITTED_NO_WRITE)) {
122123
break;
123124
}
124125
restart();

0 commit comments

Comments
 (0)