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

InMemoryDataStore delete/write cycle produces unexpected result

    XMLWordPrintable

Details

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

    Description

      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.

      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: