mirror of
https://github.com/google/nomulus.git
synced 2025-07-26 04:28:34 +02:00
We can use it more places later but this can serve as a template. We should inject the connection to the read-only replica (only created once) to the constructor of the action, then use that instead of the regular transaction manager. We add a transaction manager that simulates the read-only-replica behavior for testing purposes as well. In addition, we set the transaction isolation level to READ COMMITTED for this transaction manager (this is fine since we're never writing to it). Postgres requires this for replica SQL access (it fails if we try to use SERIALIZABLE) transactions. We didn't see this with the pipelines before since those already had transaction isolation level overrides |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
build.gradle | ||
Dockerfile |