google-nomulus/core
Weimin Yu 7135219151 Fix sporadic SQL Snapshot failure (#1571)
* Fix sporadic SQL Snapshot failure

The Postgresql set-snapshot statement (called in
JpaTransactionManager.setDatabaseSnapshot() method) must be the first
statement in the SQL transaction.

Currenty the JpaTransaction.transact() method may insert a query for
DatabaseMigrationStateSchedule before the user query when the cache is
empty or the cached value expires.

This PR proactively preloads the cache in RegistryJpaIO to prevent cache
loading  inside the transaction.

This PR also changes some DatabaseSnapshotTest tests to be retrying, in
case they run just after the cache expires. (This has happened before in
CI).
2022-03-25 15:55:00 -04:00
..
gradle/dependency-locks Bump flogger and beam dependency versions (#1562) 2022-03-22 16:08:32 -04:00
src Fix sporadic SQL Snapshot failure (#1571) 2022-03-25 15:55:00 -04:00
build.gradle Add a tools command to launch SQL validation job (#1526) 2022-02-28 13:14:57 -05:00
Dockerfile Build docker image of nomulus tool (#142) 2019-07-16 20:18:44 -04:00