Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Istanbul Release
-
None
Description
GET DataNode API sometimes does not return the data node from the root.
Steps to reproduce
- create two new anchors
- create data node for both anchors ( bookstore.json from cps-services)
- Send patch request for one of the anchors
- GET Node API for the updated anchors returns information about one for the categories.
Root cause: The current implementation fetches the first row from the fragment table which belongs to the provided dataspace and anchor. There is no guarantee that the first row will be the root and which leads to this issue.
This issue was found when testing integration between CPS and CPS temporal https://gerrit.onap.org/r/c/cps/+/121905
Attachments
Issue Links
- is blocked by
-
CPS-480 Incorrect test data in cps-ri
-
- Closed
-