This NodeStatsAllShardsMetricsCollectorTests test will failed when running ./gradlew build in local environment. Changes in this PR are applied in order to run ./gradlew build (otherwise the PA-RCA cannot be cloned under /build folder). The failed task in the terminal output is:
java.lang.LinkageError: loader 'platform' attempted duplicate class definition for sun.text.resources.ext.FormatData_es. (sun.text.resources.ext.FormatData_es is in module jdk.localedata of loader 'platform')
and
java.lang.NullPointerException: Cannot invoke "org.elasticsearch.node.Node.client()" because "org.elasticsearch.test.ESSingleNodeTestCase.NODE" is null
This NodeStatsAllShardsMetricsCollectorTests test will failed when running ./gradlew build in local environment. Changes in this PR are applied in order to run ./gradlew build (otherwise the PA-RCA cannot be cloned under /build folder). The failed task in the terminal output is:
com.amazon.opendistro.elasticsearch.performanceanalyzer.collectors.NodeStatsAllShardsMetricsCollectorTests.testGetNodeIndicesStatsByShardField
The error messages are shown below:
java.lang.LinkageError: loader 'platform' attempted duplicate class definition for sun.text.resources.ext.FormatData_es. (sun.text.resources.ext.FormatData_es is in module jdk.localedata of loader 'platform')
andjava.lang.NullPointerException: Cannot invoke "org.elasticsearch.node.Node.client()" because "org.elasticsearch.test.ESSingleNodeTestCase.NODE" is null