Re: thread cofinement session state

2009-03-11 Thread Min Zhou
Or are you >> thinking of submitting it via some other jira? >> >> >> -- >> >> *From:* Min Zhou [mailto:coderp...@gmail.com] >> *Sent:* Monday, March 09, 2009 11:39 PM >> >> *To:* hive-user@hadoop.apache.org >>

Re: thread cofinement session state

2009-03-11 Thread Min Zhou
mail.com] > *Sent:* Monday, March 09, 2009 11:39 PM > > *To:* hive-user@hadoop.apache.org > *Subject:* Re: thread cofinement session state > > > > oops, my fault. It works now. > However, the overhead initializing a new session state is too high. I guess > it will cause

RE: thread cofinement session state

2009-03-11 Thread Joydeep Sen Sarma
ions/requests etc.) From: Min Zhou [mailto:coderp...@gmail.com<mailto:coderp...@gmail.com>] Sent: Monday, March 09, 2009 11:04 PM To: hive-user@hadoop.apache.org<mailto:hive-user@hadoop.apache.org> Subject: Re: thread cofinement session state The server was keeping stay at the start

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
r for real !) From: Min Zhou [mailto:coderp...@gmail.com] Sent: Monday, March 09, 2009 11:39 PM To: hive-user@hadoop.apache.org Subject: Re: thread cofinement session state oops, my fault. It works now. However, the overhead initializing a new session state is too

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
-- >> >> *From:* Min Zhou [mailto:coderp...@gmail.com] >> *Sent:* Monday, March 09, 2009 11:04 PM >> >> *To:* hive-user@hadoop.apache.org >> *Subject:* Re: thread cofinement session state >> >> >> >> The server was keeping stay at the st

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
ts etc.) > > > -- > > *From:* Min Zhou [mailto:coderp...@gmail.com] > *Sent:* Monday, March 09, 2009 11:04 PM > > *To:* hive-user@hadoop.apache.org > *Subject:* Re: thread cofinement session state > > > > The server was keeping stay at the start point. > > On Tue,

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
ts etc.) > > > -- > > *From:* Min Zhou [mailto:coderp...@gmail.com] > *Sent:* Monday, March 09, 2009 11:04 PM > > *To:* hive-user@hadoop.apache.org > *Subject:* Re: thread cofinement session state > > > > The server was keeping stay at the sta

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
bject: Re: thread cofinement session state The server was keeping stay at the start point. On Tue, Mar 10, 2009 at 1:36 PM, Joydeep Sen Sarma mailto:jssa...@facebook.com>> wrote: Attaching a small patch. Can u try and see if this works? (it compiles and passes the hiveserver test) It doe

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
e every time a new > connection starts to get serviced (so, yes, after the accept call). > > > -- > > *From:* Min Zhou [mailto:coderp...@gmail.com] > *Sent:* Monday, March 09, 2009 10:22 PM > > *To:* hive-user@hadoop.apache.org > *Subject:* Re: th

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
[mailto:coderp...@gmail.com] Sent: Monday, March 09, 2009 10:22 PM To: hive-user@hadoop.apache.org Subject: Re: thread cofinement session state Hi, On Tue, Mar 10, 2009 at 12:07 PM, Prasad Chakka mailto:pra...@facebook.com>> wrote: I use a thread specific storage to do something similar. Ie. I ke

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
> > > -- > > *From:* Prasad Chakka [mailto:pra...@facebook.com ] > *Sent:* Monday, March 09, 2009 8:23 PM > *To:* hive-user@hadoop.apache.org > *Subject:* Re: thread cofinement session state > > I am assuming he is using the same

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
k.com] Sent: Monday, March 09, 2009 9:07 PM To: hive-user@hadoop.apache.org Subject: Re: thread cofinement session state I use a thread specific storage to do something similar. Ie. I keep the initialized session in the tss so new threads will not have it initialized. Would tha

Re: thread cofinement session state

2009-03-09 Thread Prasad Chakka
: thread cofinement session state Min is right. this seems a little screwed up. The Thrift Interface handler is constructed just once for the lifetime of the HiveServer. The session object is initialized inside this constructor. The SessionState.start() is called only once (in the constructor

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
serve()) From: Prasad Chakka [mailto:pra...@facebook.com] Sent: Monday, March 09, 2009 8:23 PM To: hive-user@hadoop.apache.org Subject: Re: thread cofinement session state I am assuming he is using the same code as MetaStore server. AFAIK, TThreadPoolServer is suppos

Re: thread cofinement session state

2009-03-09 Thread Min Zhou
words. > > > -- > *From: *Joydeep Sen Sarma > *Reply-To: * > *Date: *Mon, 9 Mar 2009 20:16:22 -0700 > *To: * > *Subject: *RE: thread cofinement session state > > (also been reading up on this code a bit just now) > > That’s weird. It seems to be using TThreadPoolServer and

Re: thread cofinement session state

2009-03-09 Thread Prasad Chakka
I am assuming he is using the same code as MetaStore server. AFAIK, TThreadPoolServer is supposed to use a new thread for each connection. From: Joydeep Sen Sarma Reply-To: Date: Mon, 9 Mar 2009 20:16:22 -0700 To: Subject: RE: thread cofinement session state

RE: thread cofinement session state

2009-03-09 Thread Joydeep Sen Sarma
rface constructor) Are ur execute calls happening on the same connection? From: Min Zhou [mailto:coderp...@gmail.com] Sent: Monday, March 09, 2009 8:03 PM To: hive-user@hadoop.apache.org Subject: thread cofinement session state Hi list, I found each invoke of HiveSer

thread cofinement session state

2009-03-09 Thread Min Zhou
Hi list, I found each invoke of HiveServer's execute method run in different threads. Those threads which execute a HSQL query(not a client connection may execute several pieces of queries), have not their own session state. when I call SessionState.get(), it will return null beacuse session sta