Skip to content

Commit

Permalink
0004609: Postgres Conflict Resolution fails to resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 2, 2020
1 parent 925ded2 commit 2e22ef9
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -104,7 +104,16 @@ public void needsResolved(AbstractDatabaseWriter writer, CsvData data, LoadStatu
}

if (isWinner) {
performChainedFallbackForUpdate(writer, data, conflict, true);
if (writer.getContext().getLastError() != null) {
performChainedFallbackForUpdate(writer, data, conflict, true);
} else {
try {
// original update was 0 rows, so we'll try to update without conflict detection
performFallbackToUpdate(writer, data, conflict, false);
} catch (ConflictException e) {
performChainedFallbackForUpdate(writer, data, conflict, true);
}
}
} else if (!conflict.isResolveRowOnly()) {
throw new IgnoreBatchException();
}
Expand Down

0 comments on commit 2e22ef9

Please sign in to comment.