Skip to content

Commit 7fba206

Browse files
committed
Disable/skip tests that won't work
1 parent cf24699 commit 7fba206

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/threadpool/SimpleThreadPoolIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ public void testThreadPoolMetrics() throws Exception {
162162
registeredMetrics.addAll(plugin.getRegisteredMetrics(InstrumentType.LONG_ASYNC_COUNTER));
163163

164164
tps[0].forEach(stats -> {
165+
if (tp.info(stats.name()).getThreadPoolType() == ThreadPool.ThreadPoolType.VIRTUAL) {
166+
return;
167+
}
168+
165169
Map<String, MetricDefinition<?>> metricDefinitions = Map.of(
166170
ThreadPool.THREAD_POOL_METRIC_NAME_COMPLETED,
167171
new MetricDefinition<>(stats.completed(), TestTelemetryPlugin::getLongAsyncCounterMeasurement, Measurement::getLong),
@@ -234,6 +238,7 @@ public void assertValid(TestTelemetryPlugin testTelemetryPlugin, String metricSu
234238
}
235239
}
236240

241+
@AwaitsFix(bugUrl = "Write thread pool is now virtual")
237242
public void testWriteThreadpoolsEwmaAlphaSetting() {
238243
Settings settings = Settings.EMPTY;
239244
var executionEwmaAlpha = DEFAULT_INDEX_AUTOSCALING_EWMA_ALPHA;

0 commit comments

Comments
 (0)