incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Netty issues
Date Wed, 07 Mar 2012 05:30:50 GMT
Ok, great to hear. Regards.

Patrick

On Tue, Mar 6, 2012 at 8:56 PM, Karthik Kambatla <kkambatl@cs.purdue.edu> wrote:
> Hi Patrick,
>
> Thank you very much your prompt response. Sorry, it took me this long to get
> back.
>
> I was not aware of jstack. I ran the jstack and I figured the problem out.
> The issue happens to be that, I call Channel.close() periodically while
> holding a lock, which further leads a deadlock with another part of my code.
>
> Thanks again for the help.
>
> Karthik
>
>
> On Tue, Mar 6, 2012 at 3:54 PM, Patrick Hunt <phunt@apache.org> wrote:
>>
>> What do you see when you run jstack once the close has hung?
>>
>> Patrick
>>
>> On Tue, Mar 6, 2012 at 11:41 AM, Karthik Kambatla
>> <kkambatl@cs.purdue.edu> wrote:
>> > Hi Flavio and Patrick
>> >
>> > I have just realized zookeeper uses Netty. I am stuck at a bug involving
>> > Netty's Channel.close() (it seems to hang) and was hoping one of you
>> > could
>> > point me in the right direction.
>> >
>> > As you know I have been working on
>> > S4-7<https://issues.apache.org/jira/browse/S4-7>,
>> > and we are using Netty's TCP to build reliable channels. In the test for
>> > reliable delivery in the presence of network glitches, I close one of
>> > the
>> > Channels. Intermittently, Channel.close() seems to hang and never
>> > return. I
>> > have posted it on Stack Overflow here -
>> > http://stackoverflow.com/q/9573436/973742
>> >
>> > Can you please comment on what I am doing wrong here, or point me to
>> > someone who can.
>> >
>> > I really appreciate your help.
>> >
>> > Thanks
>> > Karthik
>
>

Mime
View raw message