Improve InMemoryDataTreeModification state management 98/107698/8
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Sep 2023 21:23:11 +0000 (23:23 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 2 Oct 2023 11:35:46 +0000 (11:35 +0000)
commiteb420998ee41a88f4881518e79d4e75da3f2fdbc
tree468455b8b98c728f5d5545adb2801e5f240a5c66
parent376e8829bd8209acc80c2e8110049bdac911861a
Improve InMemoryDataTreeModification state management

We have an int here, which allows us to express multiple states. Improve
state tracking defensiveness to differentiate between "open" state and
two states ready() goes through.

This means we can detect when ready() ends up not completing
successfully as observed by other validation code.

JIRA: YANGTOOLS-1539
Change-Id: I10a233adf53029d14ba37751cc3cc9f38fc2a85d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-tree-ri/src/main/java/org/opendaylight/yangtools/yang/data/tree/impl/AbstractDataTreeTip.java
data/yang-data-tree-ri/src/main/java/org/opendaylight/yangtools/yang/data/tree/impl/InMemoryDataTreeModification.java