Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1102

Refactor notification stream starts

    XMLWordPrintable

Details

    • Improvement
    • Status: In Progress
    • Medium
    • Resolution: Unresolved
    • None
    • 7.0.0
    • restconf-nb

    Description

      RestconfStreamsSubscriptionService's path currently overlaps with RestconfDataService, i.e. the access is mediated through delegation. As noted in the current FIXME, the fact we are starting the stream through a GET operation is a REST violation. This harks back to the original implementation which dropped here: https://git.opendaylight.org/gerrit/c/controller/+/5094.

      Given that the streams can hold a ton of data, we should start them when the first subscriber attaches and stop them when it detaches.

      Current organization of the code deals with updating the datastore, which should actually happen when the stream is created, so this change requires cleaning up component wiring.

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated: