private void dropIndex() throws HyracksDataException { while (true) { try { indexHelper.destroy(); return; } catch (HyracksDataException e) { if (isIgnorable(e)) { LOGGER.debug("Ignoring exception on drop", e); return; } if (canRetry(e)) { LOGGER.info("Retrying drop on exception", e); continue; } throw e; } } }
@After public void destroyIndex() throws Exception { indexDataflowHelper.destroy(); }
@After public void destroyIndex() throws Exception { indexDataflowHelper.destroy(); }
@After public void destroyIndex() throws Exception { indexDataflowHelper.destroy(); } }
@After public void destroyIndex() throws Exception { indexDataflowHelper.destroy(); }
@After public void destroyIndex() throws Exception { Request close = new Request(Request.Action.INSERT_CLOSE); actor.add(close); close.await(); nc.getTransactionManager().commitTransaction(txnCtx.getTxnId()); if (secondaryIndexDataflowHelper != null) { secondaryIndexDataflowHelper.destroy(); } primaryIndexDataflowHelper.destroy(); actor.stop(); }
@After public void destroyIndex() throws Exception { for (int i = 0; i < NUM_PARTITIONS; i++) { Request close = new Request(Request.Action.INSERT_CLOSE); actors[i].add(close); close.await(); } nc.getTransactionManager().commitTransaction(txnCtx.getTxnId()); for (IIndexDataflowHelper indexDataflowHelper : secondaryIndexDataflowHelpers) { indexDataflowHelper.destroy(); } for (IIndexDataflowHelper indexDataflowHelper : primaryIndexDataflowHelpers) { indexDataflowHelper.destroy(); } for (Actor actor : actors) { actor.stop(); } }