Package com.alibaba.wasp

Examples of com.alibaba.wasp.TableNotFoundException


      if (parentTable == null) {
        parentTable = TableSchemaCacheReader.getService(reader.getConf())
            .getTable(tableName);
      }
      if (parentTable == null) {
        throw new TableNotFoundException("Not found parent table:" + parentName);
      }

      if (!parentTable.getEntityGroupKey().getName()
          .equals(table.getEntityGroupKey().getName())) {
        throw new UnsupportedException("Parent" + parentName
View Full Code Here


    this.assignmentManager = assignmentManager;
    this.tableLockManager = server.getTableLockManager();

    // Check if table exists
    if (!FMetaReader.tableExists(server.getConfiguration(), this.tableNameStr)) {
      throw new TableNotFoundException(tableNameStr);
    }
    if (!this.assignmentManager.getZKTable().isDisabledTable(tableNameStr)) {
      throw new TableNotDisabledException(tableNameStr);
    }
    ftable = FMetaReader.getTable(server.getConfiguration(), tableNameStr);
View Full Code Here

        table = TableSchemaCacheReader.getService(reader.getConf()).getTable(
            tableName);
      }
    }
    if (table == null) {
      throw new TableNotFoundException(tableName + " not exists!");
    }
    return table;
  }
View Full Code Here

        fullScan(visitor, rootTableName, null);
        return results.size() == 0 ? null : results.get(0);
      } else {
        EntityGroupInfo info = EntityGroupInfo.getEntityGroupInfo(r);
        if (info == null) {
          throw new TableNotFoundException(Bytes.toString(tableName));
        }
        ServerName sn = ServerName.getServerName(r);
        EntityGroupLocation egLoc = new EntityGroupLocation(info,
            sn.getHostname(), sn.getPort());
        return egLoc;
View Full Code Here

  @Override
  public void checkTableModifiable(byte[] tableName) throws IOException {
    String tableNameStr = Bytes.toString(tableName);
    if (!FMetaReader.tableExists(this.conf, tableNameStr)) {
      throw new TableNotFoundException(tableNameStr);
    }
    if (!getAssignmentManager().getZKTable().isDisabledTable(tableNameStr)) {
      throw new TableNotDisabledException(tableName);
    }
  }
View Full Code Here

    // this.assignmentManager = assignmentManager;
    this.conf = server.getConfiguration();
    this.tableLockManager = server.getTableLockManager();
    // Check if table exists
    if (!FMetaReader.tableExists(conf, tableNameStr)) {
      throw new TableNotFoundException(tableNameStr);
    }

    try {
      server.checkTableModifiable(tableName);
    } catch (TableNotDisabledException ex) {
View Full Code Here

    this.tableNameStr = Bytes.toString(tableName);
    this.assignmentManager = assignmentManager;
    this.retainAssignment = skipTableStateCheck;
    // Check if table exists
    if (!FMetaReader.tableExists(server.getConfiguration(), this.tableNameStr)) {
      throw new TableNotFoundException(tableNameStr);
    }
    FTable ftable = FMetaReader.getTable(server.getConfiguration(),
        tableNameStr);
    // Child Table
    if (ftable.isChildTable()) {
View Full Code Here

    // Check if table exists
    // do we want to keep this in-memory as well? i guess this is
    // part of old master rewrite, schema to zk to check for table
    // existence and such
    if (!FMetaReader.tableExists(server.getConfiguration(), this.tableNameStr)) {
      throw new TableNotFoundException(tableNameStr);
    }

    // Check all child table are disabled
    if(ftable.isRootTable()) {
      List<FTable> childs = FMetaReader.getChildTable(
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.TableNotFoundException

Copyright © 2018 www.massapicom. 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.