[OVSDB-43] DataBrokerService is deprecated and the following should be used instead: DataBroker Created: 18/Jul/14  Updated: 19/Aug/14  Resolved: 19/Aug/14

Status: Verified
Project: ovsdb
Component/s: Services
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Flavio Fernandes Assignee: Flavio Fernandes
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: PC


Issue Links:
Blocks
is blocked by YANGTOOLS-272 support needed from md-sal infra to s... Resolved
External issue ID: 1396

 Description   

DataBrokerService is deprecated and the following should be used instead:

https://jenkins.opendaylight.org/controller/job/controller-merge/lastSuccessfulBuild/artifact/target/apidocs/org/opendaylight/controller/md/sal/binding/api/DataBroker.html

See:
https://lists.opendaylight.org/pipermail/controller-dev/2014-July/005519.html

https://bugs.opendaylight.org/show_bug.cgi?id=1081
https://git.opendaylight.org/gerrit/#/c/8322/



 Comments   
Comment by Flavio Fernandes [ 19/Jul/14 ]

More refs:

https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Migration:Data_Broker

https://wiki.opendaylight.org/view/OpenDaylight_Toolkit:MD-SAL-Simple_Archetype

https://git.opendaylight.org/gerrit/#/c/7249/

Comment by Flavio Fernandes [ 21/Jul/14 ]

From: Devin Avery <davery@Brocade.com>
Subject: Re: Changing ovsdb to stop using deprecated DataBrokerService
Date: July 21, 2014 at 9:05:03 AM EDT
To: Flavio Fernandes <ffernand@redhat.com>
Cc: Dave Tucker <djt@redhat.com>

Flavio -

I took a look at your code this morning. At a high level this looks more
or less correct. A few comments:

1) Even though this is a demo, you should be aware that if your getGroup
or other methods where you call ³get()² are called from onDataChange etc
you may end up on a deadlock scenario. We are pushing a fix shortly that
will throw an exception if that happens, but just be aware that it can
happen.

2) Also, the new data broker by default does not create parent nodes so
that may cause some confusion when migrating code. That said, we are also
introducing a patch shortly that will allow people to optionally create
parent nodes in the same way that the original databroker service did.
That way the port will be more straight forward. You may need to tweak
this code again shortly.

3) Ultimately I would suggest looking at the toaster example for async
code samples as well as suggestions on how to handle various exceptions
etc.

Hope that helps,

Devin

On 7/20/14, 7:32 AM, "Flavio Fernandes" <ffernand@redhat.com> wrote:

Hi Devin,

I took a stab at replacing DataBrokerService with DataBroker in ovsdb.

With that, I would like very much to hear from you on whether I got this
right, or if what I¹m doing is
completely off the tracks:

https://git.opendaylight.org/gerrit/#/c/9184/

Could you please take a peek on that (specifically, the changes to
ŒGroup¹ in the OF13Provider.java)
and let me know?

Thanks!

‹ flavio

Comment by Flavio Fernandes [ 23/Jul/14 ]

More good refs:

https://lists.opendaylight.org/pipermail/controller-dev/2014-June/005294.html
https://git.opendaylight.org/gerrit/#/c/8168/9

Comment by Flavio Fernandes [ 25/Jul/14 ]

https://git.opendaylight.org/gerrit/#/c/9322/

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