Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1409

Listening on root node does not work in registerDataChangeListener

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Do
    • Beryllium
    • None
    • clustering
    • None
    • Operating System: All
      Platform: All

    • 4167

    Description

      If I register a listener like this

      domDataBroker.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, YangInstanceIdentifier.builder().build(), new myDOMDataChangeListener(), AsyncDataBroker.DataChangeScope.SUBTREE);

      I get exception java.util.NoSuchElementException
      at com.google.common.collect.Iterators$1.next(Iterators.java:80)
      at org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory.getModuleName(ShardStrategyFactory.java:47)
      at org.opendaylight.controller.cluster.datastore.shardstrategy.ShardStrategyFactory.getStrategy(ShardStrategyFactory.java:36)
      at org.opendaylight.controller.cluster.datastore.DistributedDataStore.registerChangeListener(DistributedDataStore.java:128)
      at org.opendaylight.controller.cluster.databroker.AbstractDOMBroker.registerDataChangeListener(AbstractDOMBroker.java:98)
      at org.opendaylight.controller.cluster.databroker.AbstractDOMBroker.registerDataChangeListener(AbstractDOMBroker.java:34)
      at org.opendaylight.controller.config.yang.netconf.mdsal.notification.NetconfMdsalNotificationMapperModule.createInstance(NetconfMdsalNotificationMapperModule.java:46)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              jmorvay@cisco.com Jakub Morvay
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: