[logback-dev] logback-dev Digest, Vol 19, Issue 76

cyril.lapinte at free.fr cyril.lapinte at free.fr
Wed Apr 24 01:05:04 CEST 2013


Thanks a lot for your time & support.
I am really having a good time here !

I think i got the stacktrace reading right now ! (Do I feel that I really look like a beginner ? ;-) )

So the append method in DelayingListAppender is either not entered (at least beyond the try instruction), or their is something wrong with interrupted attribute of this class.
>From what you just said :
> The workerShouldStopEvenIfInterruptExceptionConsumedWithinSubappender
> test assumes that the main thread will finish before
> DelayingListAppender completes the 100ms wait. If the host machine is
> slow or very busy, this assumption is sometimes incorrect. 

We can assume that we mostly entered the append method, right ?

Then, we would have a problem with the interrupted attribute.
Since the value is set to true by the worker, could it be that the new value stay in the worker cache thread and is never communicate to the main thread ?
If that is right, we would need to set the attribute volatile.
But I don't see right now (way over midnight ;-) ) any way to demonstrate it.

Best regards,

More information about the logback-dev mailing list