I was not able to reproduce the problem as I can compile without 
MemDBConnection class.

I have a quick question. Do you have any stack traces around the assert? Did 
the assert occurs before or after of executor.shutdown? And what explicitly 
closes the zeromq sockets?

Thanks
Min

> On Jul 28, 2015, at 2:04 PM, Telford Berkey <[email protected]> wrote:
> 
> Test case is at, http://pastebin.com/kP7ZDuEJ
> 
> MemDBConnection contains both ZContext and Socket as private attributes.  
> MemDBConnection is a ThreadLocal in the worker, therefore each thread should 
> get its own unique copy.
> 
>    private ZContext m_context;
>    private Socket m_routerSocket;
> 
> I've experimented with making the Socket a ThreadLocal, but this didn't 
> change the behavior.
> 
> When the assert trips, nbytes is always equal to zero.
> 
> Telford Berkey
> Software Architect
> [email protected] 
> 
> 
> 
> Synthos Technologies, A Division of Qbase, LLC 
> 3800 Pentagon Blvd., Suite 110
> Beavercreek, OH  45431
> 
> office: +937-521-4200 
> 
> www.synthostechnologies.com 
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Dongmin Yu
> Sent: Tuesday, July 28, 2015 3:44 PM
> To: ZeroMQ development list <[email protected]>
> Subject: Re: [zeromq-dev] JeroMQ 0.3.5 - Purpose of assert on line 173 
> Signaler.java
> 
> That could happens if you share zeromq socket between threads or 
> Thread.interrupt is used.
> 
> Could you upload your test case?
> 
> Thanks
> Min
> 
>> On Jul 28, 2015, at 12:32 PM, Telford Berkey <[email protected]> wrote:
>> 
>> While running load tests with JeroMQ 0.3.5, I’ve periodically received an 
>> assertion error for line 173 in Signaler.java.
>> 
>> Other than the assert, there isn’t any error handling related to the number 
>> of bytes not being equal to 1.  If asserts are disabled for this class, 
>> everything runs correctly and messages are received fine.
>> 
>> …
>>            assert nbytes == 1;
>> …
>> 
>> Are there any issues with disabling asserts for Signaler.java?  If not, what 
>> is the purpose of line 173?
>> 
>> Regards.
>> 
>> Telford Berkey
>> Software Architect
>> [email protected]
>> 
>> <image001.jpg>
>> 
>> Synthos Technologies, A Division of Qbase, LLC
>> 3800 Pentagon Blvd., Suite 110
>> Beavercreek, OH  45431
>> 
>> office: +937-521-4200
>> 
>> www.synthostechnologies.com
>> 
>> _______________________________________________
>> zeromq-dev mailing list
>> [email protected]
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to