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

InMemoryDataStore delete/write cycle produces unexpected result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 3.0.0, 2.0.17, 2.1.9
    • 2.0.16, 2.1.8
    • None
    • None

      Given the model:

      container foo {
          leaf bar {
              type string;
          }
      }

      performing the following operations:

      tx.delete(foo);
      tx.write(foo/bar, value);

      will not result in the leaf being present. This seems to be operation merging bug coming from automatic container lifecycle: previously this stacking would not have been allowed, as the parent does not exist.

      With automatic lifecycle, though, the container is transiently created and therefore this stacking is completely valid – performing these operations in two separate transactions produces a result where bar is present.

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

              Created:
              Updated:
              Resolved: