Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1105

Do not tolerate IllegalArgumentException in DataNodeContainerModificationStrategy

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 6.0.0
    • data-impl
    • None

    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).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: