Skip to content

Commit a999c21

Browse files
andsellogstashmachine
authored andcommitted
Fix ConditionalEvaluationError to do not include the event that errored in its serialiaxed form, because it's not expected that this class is ever serialized. (#16429)
Make inner field of ConditionalEvaluationError transient to be avoided during serialization. (cherry picked from commit bb7ecc2)
1 parent 58b6a0a commit a999c21

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

logstash-core/src/main/java/org/logstash/config/ir/compiler/ConditionalEvaluationError.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
* */
88
public class ConditionalEvaluationError extends RuntimeException {
99
private static final long serialVersionUID = -8633589068902565868L;
10-
private final Event failedEvent;
10+
11+
// This class is serializable because of inheritance from Throwable, however it's not expected
12+
// to be ever transmitted on wire on stored in some binary storage.
13+
private final transient Event failedEvent;
1114

1215
ConditionalEvaluationError(Throwable cause, Event failedEvent) {
1316
super(cause);

0 commit comments

Comments
 (0)