Uploaded image for project: 'Agroal'
  1. Agroal
  2. AG-220

Do not register RecoveryRegistry when not applicable in Spring Configuration


    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.3
    • None
    • narayana, pool, spring
    • None
    • False
    • None
    • False

      With AG-206 support for LRCO and non-XADataSources was added, but it seems like a non-XADataSource is unnecessarily registered with XARecoveryRegistry now. While this does not actually create a problem it does unnecesserily log warnings when trying to get a RecoveryConnection (from ConnectionFactory#getRecoveryConnection): "Recovery connections are only available for XADataSource)

      It seems like when a DataSource is being configured, if it is not actually an XADataSource (for instance a "connectable" DataSource), that it also should not be registered in the RecoveryRegistry.

            lbarreiro-1 Luis Barreiro
            kimdlanor Ronald Mik (Inactive)
            0 Vote for this issue
            1 Start watching this issue