Payara
Payara copied to clipboard
Bug Report: 'asadmin get' is broken - FISH-1369
Description
There is an intermittent problem that causes 'asadmin get' to produce different results from what is stored in domain.xml.
Expected Outcome
If I execute this command:
asadmin set-monitoring-level --target=server-config --module jdbcConnectionPool --level HIGH
and I stop and start the domain (because this is required for some settings) then I expect the following command to produce the same value
asadmin get configs.config.server-config.monitoring-service.module-monitoring-levels.jdbc_connection_pool
Current Outcome
The outcome is sometimes
configs.config.server-config.monitoring-service.module-monitoring-levels.jdbc-connection-pool=OFF
Steps to reproduce
See github repo:
https://github.com/thehpi/test-payara-get-failure
Environment
- Distribution: Server Full Profile (tried versions 5.2020.7 upto 5.2021.3)
- JDK Version: openjdk version "1.8.0_275
- Operating System: Mac
Hi @thehpi, I was able to reproduce this issue. I have raised an internal issue FISH-1369 to address this bug. Thank you very much for your detailed reproducer.
I would suggest you use the get-monitoring-level command as it seems to display the correct outcome:
./asadmin get-monitoring-level --module jdbc-connection-pool
Module Monitoring Level
jdbc-connection-pool HIGH