How to break a threadpool
We have a service that (uses java.util.concurrent) maintains a ThreadPool and executes many short running tasks. I have to create a corrupt task that will cause thread leakage and cause the ThreadPool to become empty. This will simulate a production issue that another dev suspects. How do I achieve that. I tried throwing RuntimeException and Error but that did not work. Please help.