[YANGTOOLS-1105] Do not tolerate IllegalArgumentException in DataNodeContainerModificationStrategy Created: 27/May/20  Updated: 23/Aug/20  Resolved: 23/Aug/20

Status: Resolved
Project: yangtools
Component/s: data-impl
Affects Version/s: None
Fix Version/s: 6.0.0

Type: Improvement Priority: High
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-1104 InMemoryDataTree does not support any... Resolved

 Description   

Current code allows for IllegalArgumentException to be just logged at trace level, effectively swallowing the exception. This has lead to a number of hard-to-diagnose issues, such as YANGTOOLS-1104.

In order to improve diagnostics and fail-fast behavior, investigate the choice of IllegalArgumentException in SchemaAwareApplyOperation.from() and the policy of catching that exception in DataNodeContainerModificationStrategy.

We need to differentiate illegal state type of behavior (as evidenced in YANGTOOLS-1104, which is missing code) from illegal argument type of behavior (where the user did something wrong).


Generated at Wed Feb 07 20:55:12 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.