use of org.apache.ignite.internal.thread.StripedThreadPoolExecutor in project ignite-3 by apache.
the class AbstractExecutionTest method executionContext.
protected ExecutionContext<Object[]> executionContext(boolean withDelays) {
if (withDelays) {
StripedThreadPoolExecutor testExecutor = new IgniteTestStripedThreadPoolExecutor(8, NamedThreadFactory.threadPrefix("fake-test-node", "sqlTestExec"), null, false, 0);
IgniteTestUtils.setFieldValue(taskExecutor, "stripedThreadPoolExecutor", testExecutor);
}
FragmentDescription fragmentDesc = new FragmentDescription(0, null, null, Long2ObjectMaps.emptyMap());
return new ExecutionContext<>(BaseQueryContext.builder().logger(log).build(), taskExecutor, UUID.randomUUID(), "fake-test-node", "fake-test-node", 0, fragmentDesc, ArrayRowHandler.INSTANCE, ImmutableMap.of());
}
Aggregations