File tree 1 file changed +11
-1
lines changed
x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/action 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
package org .elasticsearch .xpack .autoscaling .action ;
8
8
9
+ import org .elasticsearch .action .admin .cluster .node .info .NodesInfoResponse ;
10
+ import org .elasticsearch .bootstrap .JavaVersion ;
9
11
import org .elasticsearch .env .NodeEnvironment ;
12
+ import org .elasticsearch .monitor .os .OsInfo ;
10
13
import org .elasticsearch .monitor .os .OsProbe ;
11
14
import org .elasticsearch .test .ESIntegTestCase ;
12
15
import org .elasticsearch .xpack .autoscaling .AutoscalingIntegTestCase ;
23
26
@ ESIntegTestCase .ClusterScope (scope = ESIntegTestCase .Scope .TEST , numDataNodes = 0 )
24
27
public class TransportGetAutoscalingCapacityActionIT extends AutoscalingIntegTestCase {
25
28
26
- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/67089" )
27
29
public void testCurrentCapacity () throws Exception {
30
+ final NodesInfoResponse response = client ().admin ().cluster ().prepareNodesInfo ().execute ().actionGet ();
31
+ final boolean anyDebian8Nodes = response .getNodes ()
32
+ .stream ()
33
+ .anyMatch (ni -> ni .getInfo (OsInfo .class ).getPrettyName ().equals ("Debian GNU/Linux 8 (jessie)" ));
34
+ boolean java15Plus = JavaVersion .current ().compareTo (JavaVersion .parse ("15" )) >= 0 ;
35
+ // see: https://github.com/elastic/elasticsearch/issues/67089#issuecomment-756114654
36
+ assumeTrue ("cannot run on debian 8 prior to java 15" , java15Plus || anyDebian8Nodes == false );
37
+
28
38
assertThat (capacity ().results ().keySet (), Matchers .empty ());
29
39
long memory = OsProbe .getInstance ().getTotalPhysicalMemorySize ();
30
40
long storage = internalCluster ().getInstance (NodeEnvironment .class ).nodePaths ()[0 ].fileStore .getTotalSpace ();
You can’t perform that action at this time.
0 commit comments