Examples of PleaseHoldException


Examples of org.apache.hadoop.hbase.PleaseHoldException

    // the PleaseHoldException.
    MasterAdminKeepAliveConnection masterAdmin =
      Mockito.mock(MasterAdminKeepAliveConnection.class);
    Mockito.when(masterAdmin.createTable((RpcController)Mockito.any(),
        (MasterAdminProtos.CreateTableRequest)Mockito.any())).
      thenThrow(new ServiceException("Test fail").initCause(new PleaseHoldException("test")));
    Mockito.when(connection.getKeepAliveMasterAdminService()).thenReturn(masterAdmin);
    // Mock up our admin Interfaces
    HBaseAdmin admin = new HBaseAdmin(configuration);
    try {
      HTableDescriptor htd =
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

    return this.abort;
  }

  void checkInitialized() throws PleaseHoldException {
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

      LOG.info(message);
      if (existingServer.getStartCode() < info.getStartCode()) {
        LOG.info("Triggering server recovery; existingServer looks stale");
        expireServer(existingServer);
      }
      throw new PleaseHoldException(message);
    }
    checkIsDead(info.getServerName(), "STARTUP");
    LOG.info("Received start message from: " + info.getServerName());
    recordNewServer(info);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

    return this.abort;
  }

  void checkInitialized() throws PleaseHoldException {
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

    return this.abort;
  }

  void checkInitialized() throws PleaseHoldException {
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

        rt.getRegionInfo(0).getTableName());
      if (!TableName.META_TABLE_NAME.equals(tableName)
          && !master.assignmentManager.isFailoverCleanupDone()) {
        // Meta region is assigned before master finishes the
        // failover cleanup. So no need this check for it
        throw new PleaseHoldException("Master is rebuilding user regions");
      }
      ServerName sn = ProtobufUtil.toServerName(req.getServer());
      String error = master.assignmentManager.onRegionTransition(sn, rt);
      ReportRegionStateTransitionResponse.Builder rrtr =
        ReportRegionStateTransitionResponse.newBuilder();
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

  }

  void checkInitialized() throws PleaseHoldException, ServerNotRunningYetException {
    checkServiceStarted();
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

          existingServer + " looks stale, new server:" + serverName);
        expireServer(existingServer);
      }
      if (services.isServerShutdownHandlerEnabled()) {
        // master has completed the initialization
        throw new PleaseHoldException(message);
      }
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

    return this.abort;
  }

  void checkInitialized() throws PleaseHoldException {
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.PleaseHoldException

    return this.abort;
  }

  void checkInitialized() throws PleaseHoldException {
    if (!this.initialized) {
      throw new PleaseHoldException("Master is initializing");
    }
  }
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.