Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14889

Enable datasource statistics is not handled properly in management console


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 23.0.2.Final
    • Management, Web Console
    • None
    • Hide
      1. Download and build hibernate quickstart: https://github.com/wildfly/quickstart/tree/23.x/hibernate
      2. Download Wildfly 23
      3. Edit standalone.xml: change statistics-enabled in datasource to:
      4. Run wildfly and go to management console to access datasource statistics.
      Download and build hibernate quickstart:  https://github.com/wildfly/quickstart/tree/23.x/hibernate Download Wildfly 23 Edit standalone.xml: change  statistics-enabled in datasource to: statistics-enabled= "${env.DATASOURCE_STATISTICS: true }" Run wildfly and go to management console to access datasource statistics.
    • Undefined

      When we want to configure datasource statistics: statistics-enabled management UI will not handle environment properties correctly. When statistics are enabled by environment variables, UI will show that they are disabled and we need to click on enable statistics button to display them (statistics are gathered but UI don't know it). After clicking on enable statistics button, true will be hardcoded in standalone instead of environment variable which breaks configuration.

      We should handle environment variables correctly here to display statistics immediately.
      Issue occurs on the newest 23 version, but was discovered also on older versions so this is something old.

            hpehl@redhat.com Harald Pehl
            pjowko Piotr Jówko (Inactive)
            0 Vote for this issue
            3 Start watching this issue