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

DataObjectModification.getModificationType() throws ISE on UNMODIFIED

XMLWordPrintable

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

      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.

       

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

              Created:
              Updated:
              Resolved: