Thread: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
Hi Dave,
Please find the add-on patch on top of the current change.
Can you please take a look at it?
This mainly works on the postgres driver to make an attempt to reconnect the server.
Attachment
Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
From
Ashesh Vashi
Date:
On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.
* Handled the connection-lost, and object gone error on client side during 'refresh' operation.
* Handle the reconnection more consistently (even during cursor object creation).
Please take a look at it.
Attachment
Akshay, can you review/commit this please?
Thanks.
On Tue, Aug 30, 2016 at 5:05 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.One more attempt with some more corner cases handling.* Handled the connection-lost, and object gone error on client side during 'refresh' operation.* Handle the reconnection more consistently (even during cursor object creation).Please take a look at it.
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
From
Akshay Joshi
Date:
On Fri, Sep 2, 2016 at 7:49 PM, Dave Page <dpage@pgadmin.org> wrote:
Akshay, can you review/commit this please?
Sure.
Thanks.--On Tue, Aug 30, 2016 at 5:05 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.One more attempt with some more corner cases handling.* Handled the connection-lost, and object gone error on client side during 'refresh' operation.* Handle the reconnection more consistently (even during cursor object creation).Please take a look at it.Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
From
Akshay Joshi
Date:
Code looks good to me. Patch applied.
On Tue, Sep 6, 2016 at 12:05 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
On Fri, Sep 2, 2016 at 7:49 PM, Dave Page <dpage@pgadmin.org> wrote:Akshay, can you review/commit this please?Sure.Thanks.--On Tue, Aug 30, 2016 at 5:05 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.One more attempt with some more corner cases handling.* Handled the connection-lost, and object gone error on client side during 'refresh' operation.* Handle the reconnection more consistently (even during cursor object creation).Please take a look at it.Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Akshay JoshiPrincipal Software EngineerPhone: +91 20-3058-9517
Mobile: +91 976-788-8246
Akshay Joshi
Principal Software Engineer

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Re: Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
From
Surinder Kumar
Date:
Hi
while closing query tool, the following error is display on python console.
File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/tools/datagrid/__init__.py", line 270, in close
manager.release(did=cmd_obj.did, conn_id=cmd_obj.conn_id)
File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/utils/driver/psycopg2/__init__.py", line 1501, in release
self.connections[my_id]._release()
File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/utils/driver/psycopg2/__init__.py", line 1002, in _release
if self.wasConneted:
AttributeError: 'Connection' object has no attribute 'wasConneted'
Issue:
This issue is due to typo. Please find attached patch.
On Tue, Sep 6, 2016 at 6:35 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Code looks good to me. Patch applied.On Tue, Sep 6, 2016 at 12:05 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote: On Fri, Sep 2, 2016 at 7:49 PM, Dave Page <dpage@pgadmin.org> wrote:Akshay, can you review/commit this please?Sure.Thanks.--On Tue, Aug 30, 2016 at 5:05 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.One more attempt with some more corner cases handling.* Handled the connection-lost, and object gone error on client side during 'refresh' operation.* Handle the reconnection more consistently (even during cursor object creation).Please take a look at it.Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company--Akshay JoshiPrincipal Software EngineerPhone: +91 20-3058-9517
Mobile: +91 976-788-8246--Akshay JoshiPrincipal Software EngineerPhone: +91 20-3058-9517
Mobile: +91 976-788-8246
Attachment
Re: Re: RM#1387 [Add-on PATCH] Bad handling of missing connection database server
From
Dave Page
Date:
Thanks - applied.
On Wed, Sep 7, 2016 at 12:38 PM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hiwhile closing query tool, the following error is display on python console.File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/ tools/datagrid/__init__.py", line 270, in close manager.release(did=cmd_obj.did, conn_id=cmd_obj.conn_id) File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/ utils/driver/psycopg2/__init__ .py", line 1501, in release self.connections[my_id]._release() File "/Users/surinder/Documents/Projects/pgadmin4/web/pgadmin/ utils/driver/psycopg2/__init__ .py", line 1002, in _release if self.wasConneted:AttributeError: 'Connection' object has no attribute 'wasConneted'Issue:This issue is due to typo. Please find attached patch.On Tue, Sep 6, 2016 at 6:35 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote: Code looks good to me. Patch applied.On Tue, Sep 6, 2016 at 12:05 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote: On Fri, Sep 2, 2016 at 7:49 PM, Dave Page <dpage@pgadmin.org> wrote:Akshay, can you review/commit this please?Sure.Thanks.--On Tue, Aug 30, 2016 at 5:05 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: On Tue, Aug 30, 2016 at 7:16 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote: Hi Dave,Please find the add-on patch on top of the current change.Can you please take a look at it?This mainly works on the postgres driver to make an attempt to reconnect the server.One more attempt with some more corner cases handling.* Handled the connection-lost, and object gone error on client side during 'refresh' operation.* Handle the reconnection more consistently (even during cursor object creation).Please take a look at it.Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company----
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company