mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
fix tests related to compiler cache due to reduced class generation
This commit is contained in:
parent
1413c62c48
commit
3a5f6860a7
2 changed files with 2 additions and 3 deletions
|
@ -101,7 +101,6 @@ public final class ComputeStepSyntaxElement<T extends Dataset> {
|
||||||
public static void cleanClassCache() {
|
public static void cleanClassCache() {
|
||||||
synchronized (COMPILER) {
|
synchronized (COMPILER) {
|
||||||
CLASS_CACHE.clear();
|
CLASS_CACHE.clear();
|
||||||
COMPILER.setParentClassLoader(null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -615,12 +615,12 @@ public final class CompiledPipelineTest extends RubyEnvTestCase {
|
||||||
|
|
||||||
final CompiledPipeline testCompiledPipeline = new CompiledPipeline(testPipelineIR, pluginFactory);
|
final CompiledPipeline testCompiledPipeline = new CompiledPipeline(testPipelineIR, pluginFactory);
|
||||||
|
|
||||||
final long compilationBaseline = time(ChronoUnit.SECONDS, () -> {
|
final long compilationBaseline = time(ChronoUnit.MILLIS, () -> {
|
||||||
final CompiledPipeline.CompiledExecution compiledExecution = baselineCompiledPipeline.buildExecution();
|
final CompiledPipeline.CompiledExecution compiledExecution = baselineCompiledPipeline.buildExecution();
|
||||||
compiledExecution.compute(RubyUtil.RUBY.newArray(testEvent), false, false);
|
compiledExecution.compute(RubyUtil.RUBY.newArray(testEvent), false, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
final long compilationTest = time(ChronoUnit.SECONDS, () -> {
|
final long compilationTest = time(ChronoUnit.MILLIS, () -> {
|
||||||
final CompiledPipeline.CompiledExecution compiledExecution = testCompiledPipeline.buildExecution();
|
final CompiledPipeline.CompiledExecution compiledExecution = testCompiledPipeline.buildExecution();
|
||||||
compiledExecution.compute(RubyUtil.RUBY.newArray(testEvent), false, false);
|
compiledExecution.compute(RubyUtil.RUBY.newArray(testEvent), false, false);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue