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

become-prefix-leader does not work if there is producer active on the target member

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • clustering
    • None
    • Operating System: All
      Platform: All

    • 8514

    Description

      Robot sees [0] this and reports:
      java.lang.IllegalArgumentException: Subtree DOMDataTreeIdentifier{datastore=CONFIGURATION, root=/(tag:opendaylight.org,2017:controller:yang:lowlevel:target?revision=2017-02-15)id-ints/id-int/id-int[

      {(tag:opendaylight.org,2017:controller:yang:lowlevel:target?revision=2017-02-15)id=prefix-2}

      ]} is attached to producer org.opendaylight.mdsal.dom.broker.ShardedDOMDataTreeProducer@2cd65513

      Looking at the current implementation, PrefixLeaderHandler is using a temporary CDSDataTreeProducer, which would be targeted to an ancestor prefix of the active producer prefix.

      One possible fix would be to give PrefixLeaderHandler access to ProduceTransactionsHandler (if it exists) created by produce-transactions on the same member, to use its producer (to get the shard access) instead of the temporary one.

      [0] https://logs.opendaylight.org/releng/jenkins092/controller-csit-3node-clustering-only-carbon/697/archives/log.html.gz#s1-s26-t5-k2-k6-k3-k1-k4-k7-k1

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vrpolak Vratko Polak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: