|
6 | 6 |
|
7 | 7 | package org.elasticsearch.xpack.autoscaling.action;
|
8 | 8 |
|
| 9 | +import org.apache.lucene.util.Constants; |
9 | 10 | import org.elasticsearch.env.NodeEnvironment;
|
10 | 11 | import org.elasticsearch.monitor.os.OsProbe;
|
11 | 12 | import org.elasticsearch.test.ESIntegTestCase;
|
|
14 | 15 | import org.hamcrest.Matchers;
|
15 | 16 |
|
16 | 17 | import java.util.Set;
|
| 18 | +import java.util.StringTokenizer; |
17 | 19 | import java.util.TreeMap;
|
18 | 20 | import java.util.TreeSet;
|
19 | 21 |
|
| 22 | +import static org.apache.lucene.util.Constants.JVM_SPEC_VERSION; |
20 | 23 | import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
21 | 24 | import static org.hamcrest.Matchers.greaterThan;
|
22 | 25 |
|
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 | + boolean looksLikeDebian8 = Constants.LINUX && Constants.OS_VERSION.startsWith("3.16.0"); |
| 31 | + final StringTokenizer st = new StringTokenizer(JVM_SPEC_VERSION, "."); |
| 32 | + int major = Integer.parseInt(st.nextToken()); |
| 33 | + // see: https://github.com/elastic/elasticsearch/issues/67089#issuecomment-756114654 |
| 34 | + assumeTrue("cannot run on debian 8 prior to java 15", major >= 15 || looksLikeDebian8 == false); |
| 35 | + |
28 | 36 | assertThat(capacity().results().keySet(), Matchers.empty());
|
29 | 37 | long memory = OsProbe.getInstance().getTotalPhysicalMemorySize();
|
30 | 38 | long storage = internalCluster().getInstance(NodeEnvironment.class).nodePaths()[0].fileStore.getTotalSpace();
|
|
0 commit comments