Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-422

DataObjectModification.getModificationType() throws ISE on UNMODIFIED

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • Fluorine SR2, 3.0.6
    • Fluorine SR3, 3.0.7
    • Binding runtime
    • None

    Description

      This problem is handled by OVSDB's TransactCommandAggregator, which explicitly catches the ISE generated by DataObjectModification.getModificationType().

      The ISE is generated because modified children of a SUBTREE_MODIFIED node include a MERGE operation which turned out to be an UNMODIFIED node – which Binding cannot map, as it has only DELETE/WRITE/SUBTREE_MODIFIED options.

      Direct users usually handle this gracefully by ignoring the unmodified node when iterating over the nodes – but Binding would have to always filter modified nodes.

      This poses an interesting lifecycle problem: the node should really be pruned from the DataTreeCandidate, so that if this is the only modification within a SUBTREE_MODIFIED parent, that parent would turn into UNMODIFIED, and cascade upwards.

       

      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: