Package org.apache.hadoop.hbase.regionserver.handler

Examples of org.apache.hadoop.hbase.regionserver.handler.CloseRegionHandler


          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here


      LOG.warn("Received close for region we are already opening or closing; " +
          region.getEncodedName());
      return false;
    }
    this.regionsInTransitionInRS.putIfAbsent(region.getEncodedNameAsBytes(), false);
    CloseRegionHandler crh = null;
    if (region.isRootRegion()) {
      crh = new CloseRootHandler(this, this, region, abort, zk,
        versionOfClosingNode);
    } else if (region.isMetaRegion()) {
      crh = new CloseMetaHandler(this, this, region, abort, zk,
        versionOfClosingNode);
    } else {
      crh = new CloseRegionHandler(this, this, region, abort, zk,
        versionOfClosingNode);
    }
    this.service.submit(crh);
    return true;
  }
View Full Code Here

      // The master deletes the znode when it receives this exception.
      throw new NotServingRegionException("The region " + encodedName +
          " is not online, and is not opening.");
    }

    CloseRegionHandler crh;
    final HRegionInfo hri = actualRegion.getRegionInfo();
    if (hri.isMetaRegion()) {
      crh = new CloseMetaHandler(this, this, hri, abort, zk, versionOfClosingNode);
    } else {
      crh = new CloseRegionHandler(this, this, hri, abort, zk, versionOfClosingNode, sn);
    }
    this.service.submit(crh);
    return true;
  }
View Full Code Here

          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here

          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here

      // The master deletes the znode when it receives this exception.
      throw new NotServingRegionException("The region " + encodedName +
          " is not online, and is not opening.");
    }

    CloseRegionHandler crh;
    final HRegionInfo hri = actualRegion.getRegionInfo();
    if (hri.isMetaRegion()) {
      crh = new CloseMetaHandler(this, this, hri, abort, zk, versionOfClosingNode);
    } else {
      crh = new CloseRegionHandler(this, this, hri, abort, zk, versionOfClosingNode, sn);
    }
    this.service.submit(crh);
    return true;
  }
View Full Code Here

      // The master deletes the znode when it receives this exception.
      throw new NotServingRegionException("The region " + encodedName +
          " is not online, and is not opening.");
    }

    CloseRegionHandler crh;
    final HRegionInfo hri = actualRegion.getRegionInfo();
    if (hri.isMetaRegion()) {
      crh = new CloseMetaHandler(this, this, hri, abort, zk, versionOfClosingNode);
    } else {
      crh = new CloseRegionHandler(this, this, hri, abort, zk, versionOfClosingNode, sn);
    }
    this.service.submit(crh);
    return true;
  }
View Full Code Here

          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here

          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here

          + region.getEncodedName());
      return false;
    }
    boolean success = false;
    try {
      CloseRegionHandler crh = null;
      if (region.isRootRegion()) {
        crh = new CloseRootHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else if (region.isMetaRegion()) {
        crh = new CloseMetaHandler(this, this, region, abort, zk, versionOfClosingNode);
      } else {
        crh = new CloseRegionHandler(this, this, region, abort, zk, versionOfClosingNode);
      }
      this.service.submit(crh);
      success = true;
    } finally {
      // Remove from this server's RIT.
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.regionserver.handler.CloseRegionHandler

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.