Details
Description
if (poolingRepo.getNumIdle() <= 0)
if there are 0 idle sessions, the pooling repository gets removed. However, this should not be the case when there are active sessions of course. Hence it must become:
if (poolingRepo.getNumIdle() <= 0 && poolingRepo.getNumActive() == 0)