Menu

#2 LookupAsynch loses requests when used from multiple threads

open
nobody
None
5
2012-09-14
2011-08-01
Anonymous
No

LookupAsynch looses requests when used from multiple threads due to lack or invalid synchronization when accessing static fields in LookupAsynch and ExtendedNonblockingResolver.

Patch that fixes this problem is attached. I used concurrent primitives from Java 1.5 java.util.concurrent. Drop me a note if you want to keep compatibility with Java 1.4, I can change patch for it.

Discussion

  • alexd_nom

    alexd_nom - 2011-08-03

    Hi -

    Thanks very much for the patch.

    I would like to keep compatibility with Java 1.4 - could you please send your patch for that?

    Thanks,

    Alex.

     

Log in to post a comment.

MongoDB Logo MongoDB