/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); if (cancel && idx != null) { try { while (!busyLock.tryBlock(500)) idx.onKernalStop(); return; } catch (InterruptedException ignored) { U.warn(log, "Interrupted while waiting for active queries cancellation."); Thread.currentThread().interrupt(); } } busyLock.block(); }
/** {@inheritDoc} */ @Override public void onKernalStop(boolean cancel) { super.onKernalStop(cancel); if (cancel && idx != null) { try { while (!busyLock.tryBlock(500)) idx.cancelAllQueries(); return; } catch (InterruptedException ignored) { U.warn(log, "Interrupted while waiting for active queries cancellation."); Thread.currentThread().interrupt(); } } busyLock.block(); }