opendistro-for-elasticsearch / performance-analyzer

📈 OpenDistro Performance Analyzer
https://opendistro.github.io/
Apache License 2.0
146 stars 49 forks source link

NodeStatsAllShardsMetricsCollectorTests failed when building PA plugins #295

Closed hxiao608 closed 3 years ago

hxiao608 commented 3 years ago

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') and java.lang.NullPointerException: Cannot invoke "org.elasticsearch.node.Node.client()" because "org.elasticsearch.test.ESSingleNodeTestCase.NODE" is null