Hibernate session not flushed before handing over raw JDBC session to user code (e.g. coin selection)

Description

`CordaPersistence.createSession()` should do a Hibernate flush before returning the connection
e.g. cash selection can't access states inserted during the same database transaction

Activity

Show:
Katelyn Baker
August 30, 2018, 10:04 AM

Backport PR raised for 3.3 here https://github.com/corda/corda/pull/3865

Assignee

Szymon Sztuka

Reporter

Rick Parker

Labels

None

Sprint

None

Epic Link

None

Priority

High

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

None
Configure