[NETCONF-1085] Restconf replay notifications are not working Created: 14/Jul/23  Updated: 14/Jul/23

Status: Open
Project: netconf
Component/s: None
Affects Version/s: 2.0.14, 5.0.4
Fix Version/s: None

Type: Bug Priority: High
Reporter: Valentin Mayamsin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

opendaylight-user@root> feature:install odl-restconf-nb odl-toaster

$ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams

$ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams/stream/notification-stream/toaster:toasterRestocked/JSON?start-time=2023-07-13T22:40:18.00000Z

$ curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams

...
{
"access": [

{ "encoding": "JSON", "location": "http://localhost:8181/crosswork/nbi/optima/v1/restconf/notif/notification-stream/toaster:toasterRestocked/JSON" }

,

{ "encoding": "XML", "location": "http://localhost:8181/crosswork/nbi/optima/v1/restconf/notif/notification-stream/toaster:toasterRestocked" }

],
"description": "Indicates that the toaster has run of out bread.",
"name": "toasterRestocked",
"replay-log-creation-time": "2023-07-13T15:40:18-07:00",
"replay-support": true
},
...

$ curl -N http://localhost:8181/rests/notif/notification-stream/toaster:toasterRestocked/JSON
: ping

In another window:
$ curl -H "Content-Type: application/json" -X POST http://localhost:8181/rests/operations/toaster:restock-toaster -d '{"input":{"amountOfBreadToStock":1}}'

The above RPC produces notifications on toaster:toasterRestocked SSE stream, however if I join with another listener, it never recives previously produced notifications. "replay-support" is true, however there is seem to be no way to actually replay notifications


Generated at Wed Feb 07 20:16:38 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.