[
https://issues.apache.org/jira/browse/DAFFODIL-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Beckerle resolved DAFFODIL-2781.
-------------------------------------
Fix Version/s: 3.10.0
Resolution: Fixed
fixed in cf739954171db97426d2e1ac7327cc8683293481
> OOLAG LV evaluated multiple times when there is a failure
> ---------------------------------------------------------
>
> Key: DAFFODIL-2781
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2781
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 3.4.0
> Reporter: Steve Lawrence
> Assignee: Mike Beckerle
> Priority: Minor
> Fix For: 3.10.0
>
>
> In debugging DAFFODIL-2393, where an DFDL expression results in a path past
> root error SDE, I've found that it is attempting to compile my same invalid
> expression multiple times.
> Looking at the trace of when the expression is compiled, it looks like the
> same OOLAG LV is getting evaluated multiple times, each time when it is used
> by another OOLAG LVs. I think what is happening is this LV fails, so never
> has a value. When another LV accesses it, it is reevaluated because it
> doesn't have a value. Instead, we may want to have OOLAG capture exceptions
> and rethrow them if we attempt to reevaluate it again.
> This is maybe not a big deal since it only happens in the case when there are
> errors, but fixing this might make errors available quicker, and also might
> make debugging issues like this easier since there's no confusing about
> duplication.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)