Closed mp911de closed 3 years ago
When a Connection implements Lifecycle, we should call postAllocate before returning the connection and preRelease before returning it into the pool.
Connection
Lifecycle
postAllocate
preRelease
Any failures on postAllocate should result in a disposal and invalidation of the connection object.
See https://github.com/r2dbc/r2dbc-spi/issues/230 and https://github.com/r2dbc/r2dbc-spi/pull/235
When a
Connection
implementsLifecycle
, we should callpostAllocate
before returning the connection andpreRelease
before returning it into the pool.Any failures on
postAllocate
should result in a disposal and invalidation of the connection object.