You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Dave Watson (Created) (JIRA)" <ji...@apache.org> on 2012/04/12 18:07:20 UTC
[jira] [Created] (THRIFT-1564) Minor fixes to TZlibTransport
Minor fixes to TZlibTransport
------------------------------
Key: THRIFT-1564
URL: https://issues.apache.org/jira/browse/THRIFT-1564
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Reporter: Dave Watson
Priority: Minor
Subject: [PATCH 6/15] Minor fixes to TZlibTransport
Summary:
1. Implement peek() : this avoid the constant exception handling on
TNonblockingServer side to discover that there is no more data to read
2. Make zlib transport do a Z_FULL_FLUSH on flush(). This causes all lzw state
to be thrown away and prevents dictionaries from being reused for unrelated
requests - http://www.bolet.org/~pornin/deflate-flush.html
Both these fixes are an attempt to fix an issue that I am seeing - 2x timeouts
when connecting over zlib + framed as opposed to framed only, for servers that
are not really CPU-bound.
Test Plan:
1.Test with a simple client and server to verify that TNonblockingServer does
not do handle the 'No more data to read' exception after the peek() is
implemented.
2. Run a prod client with Z_FULL_FLUSH and verify no serious changes occur (did
not push server with this fix). Also verified that current users of
TZlibTransport only call finish and do not call flush()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (THRIFT-1564) Minor fixes to TZlibTransport
Posted by "Roger Meier (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-1564.
---------------------------------
Resolution: Fixed
Assignee: Dave Watson
committed
> Minor fixes to TZlibTransport
> ------------------------------
>
> Key: THRIFT-1564
> URL: https://issues.apache.org/jira/browse/THRIFT-1564
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Reporter: Dave Watson
> Assignee: Dave Watson
> Priority: Minor
> Attachments: 0006-Minor-fixes-to-TZlibTransport.patch
>
>
> Subject: [PATCH 6/15] Minor fixes to TZlibTransport
> Summary:
> 1. Implement peek() : this avoid the constant exception handling on
> TNonblockingServer side to discover that there is no more data to read
> 2. Make zlib transport do a Z_FULL_FLUSH on flush(). This causes all lzw state
> to be thrown away and prevents dictionaries from being reused for unrelated
> requests - http://www.bolet.org/~pornin/deflate-flush.html
> Both these fixes are an attempt to fix an issue that I am seeing - 2x timeouts
> when connecting over zlib + framed as opposed to framed only, for servers that
> are not really CPU-bound.
> Test Plan:
> 1.Test with a simple client and server to verify that TNonblockingServer does
> not do handle the 'No more data to read' exception after the peek() is
> implemented.
> 2. Run a prod client with Z_FULL_FLUSH and verify no serious changes occur (did
> not push server with this fix). Also verified that current users of
> TZlibTransport only call finish and do not call flush()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (THRIFT-1564) Minor fixes to TZlibTransport
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253286#comment-13253286 ]
Hudson commented on THRIFT-1564:
--------------------------------
Integrated in Thrift #436 (See [https://builds.apache.org/job/Thrift/436/])
THRIFT-1564 Minor fixes to TZlibTransport
Patch: Dave Watson (Revision 1325712)
Result = SUCCESS
roger : http://svn.apache.org/viewvc/?view=rev&rev=1325712
Files :
* /thrift/trunk/lib/cpp/src/thrift/transport/TZlibTransport.cpp
* /thrift/trunk/lib/cpp/src/thrift/transport/TZlibTransport.h
> Minor fixes to TZlibTransport
> ------------------------------
>
> Key: THRIFT-1564
> URL: https://issues.apache.org/jira/browse/THRIFT-1564
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Reporter: Dave Watson
> Assignee: Dave Watson
> Priority: Minor
> Attachments: 0006-Minor-fixes-to-TZlibTransport.patch
>
>
> Subject: [PATCH 6/15] Minor fixes to TZlibTransport
> Summary:
> 1. Implement peek() : this avoid the constant exception handling on
> TNonblockingServer side to discover that there is no more data to read
> 2. Make zlib transport do a Z_FULL_FLUSH on flush(). This causes all lzw state
> to be thrown away and prevents dictionaries from being reused for unrelated
> requests - http://www.bolet.org/~pornin/deflate-flush.html
> Both these fixes are an attempt to fix an issue that I am seeing - 2x timeouts
> when connecting over zlib + framed as opposed to framed only, for servers that
> are not really CPU-bound.
> Test Plan:
> 1.Test with a simple client and server to verify that TNonblockingServer does
> not do handle the 'No more data to read' exception after the peek() is
> implemented.
> 2. Run a prod client with Z_FULL_FLUSH and verify no serious changes occur (did
> not push server with this fix). Also verified that current users of
> TZlibTransport only call finish and do not call flush()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (THRIFT-1564) Minor fixes to TZlibTransport
Posted by "Dave Watson (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-1564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Watson updated THRIFT-1564:
--------------------------------
Attachment: 0006-Minor-fixes-to-TZlibTransport.patch
> Minor fixes to TZlibTransport
> ------------------------------
>
> Key: THRIFT-1564
> URL: https://issues.apache.org/jira/browse/THRIFT-1564
> Project: Thrift
> Issue Type: Improvement
> Components: C++ - Library
> Reporter: Dave Watson
> Priority: Minor
> Attachments: 0006-Minor-fixes-to-TZlibTransport.patch
>
>
> Subject: [PATCH 6/15] Minor fixes to TZlibTransport
> Summary:
> 1. Implement peek() : this avoid the constant exception handling on
> TNonblockingServer side to discover that there is no more data to read
> 2. Make zlib transport do a Z_FULL_FLUSH on flush(). This causes all lzw state
> to be thrown away and prevents dictionaries from being reused for unrelated
> requests - http://www.bolet.org/~pornin/deflate-flush.html
> Both these fixes are an attempt to fix an issue that I am seeing - 2x timeouts
> when connecting over zlib + framed as opposed to framed only, for servers that
> are not really CPU-bound.
> Test Plan:
> 1.Test with a simple client and server to verify that TNonblockingServer does
> not do handle the 'No more data to read' exception after the peek() is
> implemented.
> 2. Run a prod client with Z_FULL_FLUSH and verify no serious changes occur (did
> not push server with this fix). Also verified that current users of
> TZlibTransport only call finish and do not call flush()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira