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 ;
22
25
@ ESIntegTestCase .ClusterScope (scope = ESIntegTestCase .Scope .TEST , numDataNodes = 0 )
23
26
public class TransportGetAutoscalingCapacityActionIT extends AutoscalingIntegTestCase {
24
27
25
- @ AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/67089" )
26
28
public void testCurrentCapacity () throws Exception {
29
+ final NodesInfoResponse response = client ().admin ().cluster ().prepareNodesInfo ().execute ().actionGet ();
30
+ final boolean anyDebian8Nodes = response .getNodes ()
31
+ .stream ()
32
+ .anyMatch (ni -> ni .getInfo (OsInfo .class ).getPrettyName ().equals ("Debian GNU/Linux 8 (jessie)" ));
33
+ boolean java15Plus = JavaVersion .current ().compareTo (JavaVersion .parse ("15" )) >= 0 ;
34
+ // see: https://github.com/elastic/elasticsearch/issues/67089#issuecomment-756114654
35
+ assumeTrue ("cannot run on debian 8 prior to java 15" , java15Plus || anyDebian8Nodes == false );
36
+
27
37
assertThat (capacity ().results ().keySet (), Matchers .empty ());
28
38
long memory = OsProbe .getInstance ().getTotalPhysicalMemorySize ();
29
39
long storage = internalCluster ().getInstance (NodeEnvironment .class ).nodePaths ()[0 ].fileStore .getTotalSpace ();
You can’t perform that action at this time.
0 commit comments