139140141142143144145146147148149
}).start(); Thread.sleep(5000); log("canceling query 1"); c.cancel(); c2.cancel(); done.await(); log("query 1 thread done"); final CountDownLatch query = new CountDownLatch(1); final CountDownLatch cancel = new CountDownLatch(1);