You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by Kunal Thakar <ku...@gmail.com> on 2016/03/07 20:38:02 UTC
Re: Review Request 42656: Don't destroy session between requests with
TRequestsTransport
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42656/
-----------------------------------------------------------
(Updated March 7, 2016, 7:38 p.m.)
Review request for Aurora and Stephan Erb.
Changes
-------
I have added the isOpen() check back to flush as it was breaking unit tests that did not explicitly call transport.open() before making client calls. I can fix the unit tests, but I think this is safer.
On a related note, it looks like this code was copied from THttpClient from the thrift repo (https://github.com/apache/thrift/blob/master/lib/py/src/transport/THttpClient.py#L115), where it made sense to open a new connection with every flush, but in our case, it doesn't make sense.
Repository: aurora
Description
-------
As an API consumer, I want the API client to reuse open connections and not create a new one for every query.
Diffs (updated)
-----
src/main/python/apache/aurora/common/transport.py 909021ac203185862267d4359d332fc169a06b7e
src/test/python/apache/aurora/common/test_transport.py 1f589a9ae08e1f13be34ad6002ceb11a43fdeb5f
Diff: https://reviews.apache.org/r/42656/diff/
Testing
-------
./pants test.pytest src/test/python::
Thanks,
Kunal Thakar
Re: Review Request 42656: Don't destroy session between requests with
TRequestsTransport
Posted by Stephan Erb <se...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42656/#review122620
-----------------------------------------------------------
I am fine with this change and will commit it this way. I'll just have to figure some review board permission stuff before hand.
- Stephan Erb
On March 7, 2016, 8:38 p.m., Kunal Thakar wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42656/
> -----------------------------------------------------------
>
> (Updated March 7, 2016, 8:38 p.m.)
>
>
> Review request for Aurora and Stephan Erb.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> As an API consumer, I want the API client to reuse open connections and not create a new one for every query.
>
>
> Diffs
> -----
>
> src/main/python/apache/aurora/common/transport.py 909021ac203185862267d4359d332fc169a06b7e
> src/test/python/apache/aurora/common/test_transport.py 1f589a9ae08e1f13be34ad6002ceb11a43fdeb5f
>
> Diff: https://reviews.apache.org/r/42656/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest src/test/python::
>
>
> Thanks,
>
> Kunal Thakar
>
>
Re: Review Request 42656: Don't destroy session between requests with
TRequestsTransport
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42656/#review122367
-----------------------------------------------------------
Ship it!
Master (a91a759) is green with this patch.
./build-support/jenkins/build.sh
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On March 7, 2016, 7:38 p.m., Kunal Thakar wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42656/
> -----------------------------------------------------------
>
> (Updated March 7, 2016, 7:38 p.m.)
>
>
> Review request for Aurora and Stephan Erb.
>
>
> Repository: aurora
>
>
> Description
> -------
>
> As an API consumer, I want the API client to reuse open connections and not create a new one for every query.
>
>
> Diffs
> -----
>
> src/main/python/apache/aurora/common/transport.py 909021ac203185862267d4359d332fc169a06b7e
> src/test/python/apache/aurora/common/test_transport.py 1f589a9ae08e1f13be34ad6002ceb11a43fdeb5f
>
> Diff: https://reviews.apache.org/r/42656/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest src/test/python::
>
>
> Thanks,
>
> Kunal Thakar
>
>