forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the assignment of plugin.id to load the value dynamically ist…
…ead of hardcode Changed ComputeStepSyntaxElement to generate Java code to retrieve the plugin's id by a method instead of hardcoding the value in the generated code. This permit to share more compiled classes, that differs only by plugin.id and speed up the pipeline compilation. The change has been secured by future regression with unit test that track pipeline compilations times. Co-authored-by: Andrea Selva <andsel@users.noreply.github.com> Co-authored-by: João Duarte <jsvd@users.noreply.github.com> Fixes: elastic#12031
- Loading branch information
1 parent
5eb25dc
commit ffac2df
Showing
6 changed files
with
271 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
logstash-core/src/test/resources/org/logstash/config/ir/cache/pipeline1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
input { | ||
stdin {} | ||
} | ||
|
||
filter { | ||
mutate { | ||
id => "ppl1_1" | ||
rename => ["a_field", "into_another"] | ||
} | ||
|
||
mutate { | ||
id => "ppl1_2" | ||
rename => ["a_field", "into_another"] | ||
} | ||
} | ||
|
||
output { | ||
stdout {} | ||
} |
Oops, something went wrong.