Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-14 Thread Hiranya Jayathilaka
On Sat, Jul 14, 2012 at 6:07 AM, Senaka Fernando sen...@wso2.com wrote: Hi all, Can we also simulate the handlers that get executed in AM and G-Reg to get an understanding of whether there are any differences. Denis has reported some other issues too, which made me wonder. So far this is

[Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Charitha Kankanamge
This is very simple to reproduce and an absolute blocker in standalone H2 based deployment because if API provider mistakenly give inaccessible or wrong WSDL url, whole registry becomes unusable. 1. In API manager, login to API publisher app 2. Add a new API with a WSDL and make sure to specify a

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Sumedha Rubasinghe
G-Reg team, Can we check the table access order again? The problem is only appearing when adding a WSDL. So I suspect the logic in WSDL media type handler. On Fri, Jul 13, 2012 at 7:08 PM, Charitha Kankanamge chari...@wso2.comwrote: This is very simple to reproduce and an absolute blocker in

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Senaka Fernando
Hi Janaka, Does this have any connection with the way in which UUID setting/fetching happens. Because that's something that happens when adding a WSDL. Also, doesn't this get reproduced on G-Reg? Why only on AM? Thanks, Senaka. On Fri, Jul 13, 2012 at 9:47 AM, Sumedha Rubasinghe

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Sumedha Rubasinghe
On Fri, Jul 13, 2012 at 7:25 PM, Senaka Fernando sen...@wso2.com wrote: Hi Janaka, Does this have any connection with the way in which UUID setting/fetching happens. Because that's something that happens when adding a WSDL. Also, doesn't this get reproduced on G-Reg? Why only on AM? API

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Senaka Fernando
Hi all, Do we use transactions anywhere in the AM components and don't roll them back when a WSDL addition fails? Thanks, Senaka. On Fri, Jul 13, 2012 at 10:06 AM, Sumedha Rubasinghe sume...@wso2.comwrote: On Fri, Jul 13, 2012 at 7:25 PM, Senaka Fernando sen...@wso2.com wrote: Hi Janaka,

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Janaka Ranabahu
Hi Senaka, Fetching the path from UUID happens using an executeQuery() operation. Can it have any impact on this? Adding the UUID is done using the queries we had. I basically add a new column there. Thanks, Janaka On Fri, Jul 13, 2012 at 7:25 PM, Senaka Fernando sen...@wso2.com wrote: Hi

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Sumedha Rubasinghe
On Fri, Jul 13, 2012 at 7:36 PM, Sumedha Rubasinghe sume...@wso2.comwrote: On Fri, Jul 13, 2012 at 7:25 PM, Senaka Fernando sen...@wso2.com wrote: Hi Janaka, Does this have any connection with the way in which UUID setting/fetching happens. Because that's something that happens when

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Senaka Fernando
Or the same in WSDLManager (or WSDL Handler), which is somewhat bust. Thanks, Senaka. On Fri, Jul 13, 2012 at 10:09 AM, Senaka Fernando sen...@wso2.com wrote: Hi all, Do we use transactions anywhere in the AM components and don't roll them back when a WSDL addition fails? Thanks, Senaka.

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Sumedha Rubasinghe
On Fri, Jul 13, 2012 at 7:46 PM, Sumedha Rubasinghe sume...@wso2.comwrote: On Fri, Jul 13, 2012 at 7:36 PM, Sumedha Rubasinghe sume...@wso2.comwrote: On Fri, Jul 13, 2012 at 7:25 PM, Senaka Fernando sen...@wso2.com wrote: Hi Janaka, Does this have any connection with the way in which

Re: [Dev] API manager becomes unusable due to a registry dead lock

2012-07-13 Thread Senaka Fernando
Hi all, Can we also simulate the handlers that get executed in AM and G-Reg to get an understanding of whether there are any differences. Denis has reported some other issues too, which made me wonder. Thanks, Senaka. On Fri, Jul 13, 2012 at 10:24 AM, Sumedha Rubasinghe sume...@wso2.comwrote: