[ 
https://issues.apache.org/jira/browse/THRIFT-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776813#comment-13776813
 ] 

Vaibhav Gumashta commented on THRIFT-2207:
------------------------------------------

>From hive log:
013-09-24 12:05:39,909 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
Server@1ae73783 + org.mortbay.jetty.servlet.Context@70a6aa31{/,null} as handler
2013-09-24 12:05:39,909 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
SessionHandler@4defb0be + ServletHandler@333cb1eb as handler
2013-09-24 12:05:39,909 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
SessionHandler@4defb0be + org.mortbay.jetty.servlet.HashSessionManager@55c4d594 
as sessionManager
2013-09-24 12:05:39,909 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null} + SessionHandler@4defb0be as 
handler
2013-09-24 12:05:39,913 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
ServletHandler@333cb1eb + 
org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583 as servlet
2013-09-24 12:05:39,914 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
ServletHandler@333cb1eb + 
(S=org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583,[/cliservice/*])
 as servletMapping
2013-09-24 12:05:39,918 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
filterNameMap=null
2013-09-24 12:05:39,918 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
pathFilters=null
2013-09-24 12:05:39,918 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletFilterMap=null
2013-09-24 12:05:39,918 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletPathMap={/cliservice/*=org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583}
2013-09-24 12:05:39,918 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletNameMap={org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583=org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583}
2013-09-24 12:05:39,918 INFO  mortbay.log (Slf4jLog.java:info(67)) - 
jetty-6.1.26
2013-09-24 12:05:39,926 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.mortbay.thread.QueuedThreadPool@5b3ac14d
2013-09-24 12:05:39,935 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null} + ErrorHandler@427b7b5d as 
errorHandler
2013-09-24 12:05:39,936 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Container 
Server@1ae73783 + org.mortbay.jetty.servlet.HashSessionIdManager@134510ac as 
sessionIdManager
2013-09-24 12:05:39,936 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - Init 
SecureRandom.
2013-09-24 12:05:39,937 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.mortbay.jetty.servlet.HashSessionIdManager@134510ac
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.mortbay.jetty.servlet.HashSessionManager@55c4d594
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
filterNameMap=null
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
pathFilters=null
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletFilterMap=null
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletPathMap={/cliservice/*=org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583}
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - 
servletNameMap={org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583=org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583}
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - starting 
ServletHandler@333cb1eb
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
ServletHandler@333cb1eb
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - starting 
SessionHandler@4defb0be
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
SessionHandler@4defb0be
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - starting 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null}
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - starting 
ErrorHandler@427b7b5d
2013-09-24 12:05:39,938 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
ErrorHandler@427b7b5d
2013-09-24 12:05:39,939 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583
2013-09-24 12:05:39,939 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null}
2013-09-24 12:05:39,939 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - starting 
Server@1ae73783
2013-09-24 12:05:39,947 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
org.mortbay.jetty.nio.SelectChannelConnector$1@76fdbc27
2013-09-24 12:05:39,958 INFO  mortbay.log (Slf4jLog.java:info(67)) - Started 
[email protected]:58227
2013-09-24 12:05:39,959 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
[email protected]:58227
2013-09-24 12:05:39,959 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - started 
Server@1ae73783
2013-09-24 12:05:39,959 INFO  thrift.ThriftCLIService 
(ThriftHttpCLIService.java:run(104)) - Starting CLIService in Http mode on port 
58227 path=/cliservice/* with 5..500 worker threads
2013-09-24 12:05:41,863 DEBUG transport.TSaslTransport 
(TSaslTransport.java:open(243)) - opening transport 
org.apache.thrift.transport.TSaslClientTransport@424b29cf
2013-09-24 12:05:41,869 DEBUG transport.TSaslClientTransport 
(TSaslClientTransport.java:handleSaslStartMessage(96)) - Sending mechanism name 
PLAIN and initial response of length 20
2013-09-24 12:05:41,872 DEBUG transport.TSaslTransport 
(TSaslTransport.java:sendSaslMessage(162)) - CLIENT: Writing message with 
status START and payload length 5
2013-09-24 12:05:41,873 DEBUG transport.TSaslTransport 
(TSaslTransport.java:sendSaslMessage(162)) - CLIENT: Writing message with 
status COMPLETE and payload length 20
2013-09-24 12:05:41,873 DEBUG transport.TSaslTransport 
(TSaslTransport.java:open(254)) - CLIENT: Start message handled
2013-09-24 12:05:41,873 DEBUG transport.TSaslTransport 
(TSaslTransport.java:open(277)) - CLIENT: Main negotiation loop complete
2013-09-24 12:05:41,873 DEBUG transport.TSaslTransport 
(TSaslTransport.java:open(287)) - CLIENT: SASL Client receiving last message
2013-09-24 12:05:41,904 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - uri=
2013-09-24 12:05:41,904 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - fields=

2013-09-24 12:05:41,904 DEBUG mortbay.log (Slf4jLog.java:debug(49)) - EXCEPTION 
HttpException(400,null,null)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:361)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
        at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
2013-09-24 12:05:42,212 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - BAD
2013-09-24 12:05:42,222 INFO  mortbay.log (Slf4jLog.java:info(67)) - Stopped 
[email protected]:58227
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.mortbay.jetty.nio.SelectChannelConnector$1@76fdbc27
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
[email protected]:58227
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopping 
Server@1ae73783
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopping 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null}
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopping 
SessionHandler@4defb0be
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopping 
ServletHandler@333cb1eb
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.apache.hive.service.cli.thrift.ThriftHttpServlet-564601583
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
ServletHandler@333cb1eb
2013-09-24 12:05:42,223 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.mortbay.jetty.servlet.HashSessionManager@55c4d594
2013-09-24 12:05:42,224 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
SessionHandler@4defb0be
2013-09-24 12:05:42,224 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopping 
ErrorHandler@427b7b5d
2013-09-24 12:05:42,224 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
ErrorHandler@427b7b5d
2013-09-24 12:05:42,224 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.mortbay.jetty.servlet.Context@70a6aa31{/,null}
2013-09-24 12:05:42,224 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.mortbay.jetty.servlet.HashSessionIdManager@134510ac
2013-09-24 12:05:42,325 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
org.mortbay.thread.QueuedThreadPool@5b3ac14d
2013-09-24 12:05:42,325 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - stopped 
Server@1ae73783
2013-09-24 12:05:42,325 INFO  thrift.ThriftCLIService 
(ThriftCLIService.java:stop(104)) - Http server has stopped
                
> Thrift goes OOM when used in an HTTP over Thrift setting
> --------------------------------------------------------
>
>                 Key: THRIFT-2207
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2207
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.9
>            Reporter: Vaibhav Gumashta
>
> I am trying to use HTTP over thrift. On the server side, I'm creating a Jetty 
> instance and creating an instance of ThriftHttpServlet to handle the request. 
> However, on client side, if I create a TSocket transport (wrapped in a 
> TSaslClientTransport due to this: 
> [THRIFT-1774|https://issues.apache.org/jira/browse/THRIFT-1774]), 
> transport.open goes out of memory. Although Jetty throws an exception on 
> trying to handle a non-HTTP message, it doesn't seem to be handles in 
> TSaslTransport#receiveSaslMessage.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to