Race condition stopping context

2014-12-19 Thread Mariano Gonzalez
Hello, I have an application in which I'm using all async loggers. When I stop the LoggerContext, there're still some events waiting in disruptor's buffer and when it tries to execute them the context is already closed and thus those events are lost. Is there some kind of hook, callback or

Re: Race condition stopping context

2014-12-19 Thread Remko Popma
We used to have this problem in older versions but these issues have been addressed in 2.1 as far as I know. Which version are you using? Sent from my iPhone On 2014/12/19, at 22:01, Mariano Gonzalez mariano.l.gonza...@gmail.com wrote: Hello, I have an application in which I'm using

Re: Race condition stopping context

2014-12-19 Thread Mariano Gonzalez
Hello Remko, I'm using 2.1. Any pointers ? On Fri, Dec 19, 2014 at 11:20 AM, Remko Popma remko.po...@gmail.com wrote: We used to have this problem in older versions but these issues have been addressed in 2.1 as far as I know. Which version are you using? Sent from my iPhone On

Re: Race condition stopping context

2014-12-19 Thread Mariano Gonzalez
Hello, I've been taking a look at LoggerContext#stop() and for what I see there's code to prevent disruptor to take new messages but there's nothing making sure that the ring buffer is empty before actually closing up. I did a simple test with an Appender wrapper like this: final class