Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Tom Pantelis
cal.com> > *Cc:* Robert Varga <n...@hq.sk>; controller-us...@lists.opendaylight.org; > controller-dev@lists.opendaylight.org > > *Subject:* Re: [controller-dev] Getting exception when using Transaction > Chain > > > > It seems you're trying to access

Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Satish Dutt
] Sent: Tuesday, March 07, 2017 2:38 AM To: Satish Dutt <sd...@advaoptical.com> Cc: Robert Varga <n...@hq.sk>; controller-us...@lists.opendaylight.org; controller-dev@lists.opendaylight.org Subject: Re: [controller-dev] Getting exception when using Transaction Chain It seems you're tryi

Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Tom Pantelis
-dev@lists.opendaylight.org > Subject: Re: [controller-dev] Getting exception when using Transaction > Chain > > On 03/06/2017 12:39 PM, Satish Dutt wrote: > > When multiple requests are sent concurrently, IllegalStateException is > > thrown. Is there any way to solve this

Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Robert Varga
On 03/06/2017 01:05 PM, Satish Dutt wrote: > Thanks Robert for the clarification. So to solve the issue, can I handle this > IllegalStateException and retry the read or write operations for a finite > number of times, which makes the best effort of previous write-capable > transactions to get

Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Satish Dutt
etting exception when using Transaction Chain On 03/06/2017 12:39 PM, Satish Dutt wrote: > When multiple requests are sent concurrently, IllegalStateException is > thrown. Is there any way to solve this issue, apart from synchronizing > the method which does the above operations ? This i

Re: [controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Robert Varga
On 03/06/2017 12:39 PM, Satish Dutt wrote: > When multiple requests are sent concurrently, IllegalStateException is > thrown. Is there any way to solve this issue, apart from synchronizing > the method which does the above operations ? This is actually part of the API contract:

[controller-dev] Getting exception when using Transaction Chain

2017-03-06 Thread Satish Dutt
Hi, In a method we are creating a new instance of ReadOnlyTransaction and WriteTransaction from the transaction chain and subsequently doing the read and write operations on the datastore. When multiple requests are sent concurrently, IllegalStateException is thrown. Is there any way to solve