Examples of abort()


Examples of org.apache.hadoop.hbase.master.HMaster.abort()

  @Test(timeout = 60000)
  public void testMasterZKSessionRecoveryFailure() throws Exception {
    LOG.info("Starting testMasterZKSessionRecoveryFailure");
    MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
    HMaster m = cluster.getMaster();
    m.abort("Test recovery from zk session expired",
      new KeeperException.SessionExpiredException());
    assertFalse(m.isStopped());
    testSanity("testMasterZKSessionRecoveryFailure");
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.monitoring.MonitoredTask.abort()

      tot_mgr_log_split_batch_err.incrementAndGet();
      LOG.warn("error while splitting logs in " + logDirs +
      " installed = " + batch.installed + " but only " + batch.done + " done");
      String msg = "error or interrupted while splitting logs in "
        + logDirs + " Task = " + batch;
      status.abort(msg);
      throw new IOException(msg);
    }
    for(Path logDir: logDirs){
      status.setStatus("Cleaning up log directory...");
      try {
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.HRegionServer.abort()

    HRegion metaRegion = null;
    for (RegionServerThread regionServerThread : regionServerThreads) {
      HRegionServer regionServer = regionServerThread.getRegionServer();
      metaRegion = regionServer.getOnlineRegion(HRegionInfo.FIRST_META_REGIONINFO.getRegionName());
      count++;
      regionServer.abort("");
      if (null != metaRegion) break;
    }
    HRegionServer regionServer = cluster.getRegionServer(count);

    TEST_UTIL.shutdownMiniHBaseCluster();
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.RegionServerServices.abort()

    Configuration conf = rss.getConfiguration();
    IndexedHTableDescriptor tableDescriptor = null;
    try {
      tableDescriptor = IndexUtils.getIndexedHTableDescriptor(tableName, conf);
    } catch (IOException e) {
      rss.abort("Some unidentified scenario while reading from the "
          + "table descriptor . Aborting RegionServer", e);
    }
    if (tableDescriptor != null) {
      list = tableDescriptor.getIndices();
      if (list != null && list.size() > 0) {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.EditLogOutputStream.abort()

      op.setTransactionId(txid++);
      out.write(op);
    }
    out.setReadyToFlush();
    out.flush();
    out.abort();
    out.close();
   
    long numTrans = bkjm.getNumberOfTransactions(1, true);
    assertEquals((txid-1), numTrans);
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.util.AtomicFileOutputStream.abort()

      success = true;
    } finally {
      if (success) {
        IOUtils.closeStream(fos);
      } else {
        fos.abort();
      }
    }
  }
}
View Full Code Here

Examples of org.apache.harmony.auth.module.JndiLoginModule.abort()

     * {@link org.apache.harmony.auth.module.JndiLoginModule#abort()}.
     */
    public void test_abort() throws LoginException {
        JndiLoginModule jlm = new JndiLoginModule();
        try {
            assertFalse("Should return false if login failed or no login", jlm
                    .abort());
        } catch (LoginException e) {
            fail("Abort failed");
        }
        Subject subject = new Subject();
View Full Code Here

Examples of org.apache.harmony.auth.module.KeyStoreLoginModule.abort()

    private final String KEYSTORE_ALIAS = "mykey";

    public void test_abort() throws LoginException {
        KeyStoreLoginModule ksm = new KeyStoreLoginModule();
        try {
            assertFalse("Should return false if login failed or no login", ksm
                    .abort());
        } catch (LoginException e) {
            fail("Abort failed");
        }
        Subject subject = new Subject();
View Full Code Here

Examples of org.apache.harmony.auth.module.LdapLoginModule.abort()

     * Test method for {@link org.apache.harmony.auth.module.LdapLoginModule#abort()}.
     */
    public void test_abort() throws LoginException{
        LdapLoginModule jlm = new LdapLoginModule();
        try {
            assertFalse("Should return false if login failed or no login", jlm
                    .abort());
        } catch (LoginException e) {
            fail("Abort failed");
        }
        Subject subject = new Subject();
View Full Code Here

Examples of org.apache.hcatalog.data.transfer.HCatWriter.abort()

        WriteEntity entity = builder.withTable("mytbl").build();
        HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
        if (status) {
            writer.commit(context);
        } else {
            writer.abort(context);
        }
    }

    private static HCatRecord getRecord(int i) {
        List<Object> list = new ArrayList<Object>(2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.