[MDSAL-103] UnsupportedOperationException in PingPongDataBroker Created: 18/Sep/15  Updated: 09/Mar/18  Resolved: 22/Sep/15

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Michal Polkorab Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File testing-input.txt    
External issue ID: 4327
Priority: High

 Description   

Next exception is thrown during DOMDataTreeChangeListener registration (in topoprocessing project):

java.lang.UnsupportedOperationException: Delegate org.opendaylight.controller.cluster.datastore.ConcurrentDOMDataBroker@5767a440 does not support required functionality
at org.opendaylight.controller.md.sal.dom.broker.impl.PingPongDataBroker.registerDataTreeChangeListener(PingPongDataBroker.java:61)[136:org.opendaylight.controller.sal-broker-impl:1.3.0.SNAPSHOT]

This looks like the delegate broker inside doesn't implement DOMDataTreeChangeService.

We would probably need to have some PingPongDataBroker instance in system (01-md-sal.xml config file) with delegate broker implementing DOMDataTreeChangeService or to fix existing delegate broker setup.



 Comments   
Comment by Michal Polkorab [ 18/Sep/15 ]

Steps how to reproduce:
1. clone topoprocessing

  • git clone ssh://${username}@git.opendaylight.org:29418/topoprocessing
    2. fetch testing change
  • git fetch ssh://michal.polkorab@git.opendaylight.org:29418/topoprocessing refs/changes/58/27158/1 && git checkout FETCH_HEAD
    3. mvn clean install
    4. ./distribution-karaf/target/assembly/bin/karaf
    5. log:set TRACE org.opendaylight.topoprocessing
    6. feature:install odl-restconf-noauth odl-bgpcep-pcep-all odl-topoprocessing-network-topology
    7. log:tail
    8. send exemplary request (added as an attachment) through REST PUT on following URL: http://localhost:8181/restconf/config/network-topology:network-topology/topology/mytopo:1/
    9. check logs
Comment by Michal Polkorab [ 18/Sep/15 ]

Attachment testing-input.txt has been added with description: Topoprocessing testing request

Comment by Michal Polkorab [ 18/Sep/15 ]

Step 2 in Comment1 - my username should be replaced by developers name

Comment by Michal Polkorab [ 18/Sep/15 ]

fix pushed here: https://git.opendaylight.org/gerrit/#/c/27164/

Comment by Michal Polkorab [ 22/Sep/15 ]

Fix for lithium branch (controller project) is here: https://git.opendaylight.org/gerrit/#/c/27287

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