Menu

#124 BasicResourcePoolFactory without external taskRunner leads to ClassCastException

v1.0 (example)
closed-fixed
nobody
None
5
2013-11-30
2013-11-29
petrjanata
No

If no taskRunner is specified, the hardcoded default is created. Default runner used to be RoundRobinAsynchronousRunner which implements Queuable. It was replaced by ThreadPoolAsynchronousRunner which does not implement it.
BasicResourcePoolFactory.java line 133 then fails with ClassCastException to Queuable.

I have encountered this while trying to reproduce and fix #68 InterruptedException causing connection leaks.

Discussion

  • Steve Waldman

    Steve Waldman - 2013-11-30

    Thanks! This is now fixed on github and in the latest SNAPSHOT release.

     
  • Steve Waldman

    Steve Waldman - 2013-11-30
    • status: open --> closed-fixed
     
  • Steve Waldman

    Steve Waldman - 2013-11-30

    (do note though that you had to wangle your way into package-visible to exercise this code... async event support of BasicResourcePool is hidden and mostly untested.)

     

Log in to post a comment.

MongoDB Logo MongoDB