Starting a new thread so hopefully it makes it easier to track and follow.

So looks like on Buildbot AutoConnectionTrackerTest is failing randomly

[ERROR] Failures:
[ERROR]   AutoConnectionTrackerTest.test:198 expected:<1> but was:<0>

Thanks Roberto for reporting.
I also ran this test many times locally and it works.

I have looked into the code and I see possible issues
- test is relying on logs so even with async=false, is there a way
something could not be flushed out.
- System.gc() maybe does not fully clean up connections
- Tracker did not get time to write down the log statement

Maybe others.

I'm proposing here to attempt adding some log statements to see if we can
have some pointers.

@Jon: instead of the logs, could we instead rely on latches?
I was thinking about wrapping up the Tracker (delegate pattern) and use a
latch so the test could actually way and avoid some timing issues.




--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com

Reply via email to