From 861b76949975cc2e7c16a34f2ccf14bd81b5ff39 Mon Sep 17 00:00:00 2001 From: Dan Newton Date: Tue, 17 Mar 2020 13:55:10 +0000 Subject: [PATCH] NOTICK Update release-notes about database transaction limitations (#6052) * NOTICK Update release-notes about database transaction limitations --- docs/source/release-notes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/release-notes.rst b/docs/source/release-notes.rst index 029f89a10b..d4fcf1ae94 100644 --- a/docs/source/release-notes.rst +++ b/docs/source/release-notes.rst @@ -79,6 +79,10 @@ Given the addition of new APIs, the platform version of Corda 4.4 has been bumpe For more information on platform version, please see :doc:`versioning`. For more details on upgrading a CorDapp to use platform version 5, please see :doc:`app-upgrade-notes`. +Known Issues +~~~~~~~~~~~~ + +Changes introduced in Corda 4.4 to increase ledger integrity have highlighted limitations regarding database transactions. To prevent flows from continuing to process after a database transaction has failed to commit or suffered from a pre-commit persistence exception, extra database flushes have been added. These extra flushes can cause exceptions to be thrown where they were not before (or cause different exception types to be raised compared to Corda 4.3 or previous versions). In general, CorDapp developers should not expect to be able to catch exceptions thrown during a database transaction and then continue with further DB operations as part of the same flow. A safer pattern involves allowing the flow to fail and be retried Issues Fixed ~~~~~~~~~~~~