945963ed07
DelegatingSession class wraps ClientSessionImpl and attempts to close session should it not be closed by the user. It does this by implementing finalize. However, the order in which finalize runs can be difficult to predict as compilers, and JIT compilers are able to optimize early. The current DelegatingSession was causing problems of finalize getting called early (before consumers, producers were finished with the session). This was causing tests to fail on the IBM JDK (which optimizes early). The same happens on OpenJDK if the GC is forced. |
||
---|---|---|
.. | ||
src | ||
pom.xml |