SystemViewExporterSpi can not be properly configured
The IgniteConfiguration has a method setSystemViewExporterSpi to configure a SystemViewExporterSpi. My expectation is that when I set a no-op SPI there, no JMX beans for system views will be created.
Unfortunately, this is not the case. In the method GridSystemViewManager#addStandardExporters a new new JmxSystemViewExporterSpi() is always added to the already defined SPIs: https://github.com/apache/ignite/blob/c9bbb2f97e851971482ec547b92f09a6a6592f29/modules/core/src/main/java/org/apache/ignite/internal/managers/systemview/GridSystemViewManager.java#L247
This behaviour was introduced for the issue https://issues.apache.org/jira/browse/IGNITE-12921 - it was claimed that configuring a custom SystemViewExporterSpi leads to non-obvious behaviour to the user, while in my opinion the exact opposite is the case. The behaviour now is non-obvious.
Two questions then:
- Is there currently a way to disable system views?
- If not, could we please make the ignite configuration have an effect?
Hi, can you clarify, why do you need to disable system views?