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

Examples of org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler$PostOpenDeployTasksThread


      if (region.isRootRegion()) {
        this.service.submit(new OpenRootHandler(this, this, region, htd, version));
      } else if (region.isMetaRegion()) {
        this.service.submit(new OpenMetaHandler(this, this, region, htd, version));
      } else {
        this.service.submit(new OpenRegionHandler(this, this, region, htd, version));
      }
    } catch (IOException ie) {
      // Clear from this server's RIT list else will stick around for ever.
      removeFromRegionsInTransition(region);
      throw ie;
View Full Code Here


          versionOfOfflineNode));
    } else if (region.isMetaRegion()) {
      this.service.submit(new OpenMetaHandler(this, this, region, htd,
          versionOfOfflineNode));
    } else {
      this.service.submit(new OpenRegionHandler(this, this, region, htd,
          versionOfOfflineNode));
    }
    return RegionOpeningState.OPENED;
  }
View Full Code Here

    Assert.assertEquals(Boolean.FALSE, getRS().getRegionsInTransitionInRS().get(
        hri.getEncodedNameAsBytes()));

    // Let's start the open handler
    HTableDescriptor htd = getRS().tableDescriptors.get(hri.getTable());
    getRS().service.submit(new OpenRegionHandler(getRS(), getRS(), hri, htd, 0));

    // The open handler should have removed the region from RIT but kept the region closed
    checkRegionIsClosed();

    // The open handler should have updated the value in ZK.
View Full Code Here

    // It should not succeed for two reasons:
    //  1) There is no ZK node
    //  2) The region in RIT was changed.
    // The order is more or less implementation dependant.
    HTableDescriptor htd = getRS().tableDescriptors.get(hri.getTable());
    getRS().service.submit(new OpenRegionHandler(getRS(), getRS(), hri, htd, 0));

    // The open handler should have removed the region from RIT but kept the region closed
    checkRegionIsClosed();

    // We should not find any znode here.
View Full Code Here

            this.service.submit(new OpenMetaHandler(this, this, region, htd,
                versionOfOfflineNode));
          } else {
            updateRegionFavoredNodesMapping(region.getEncodedName(),
                regionOpenInfo.getFavoredNodesList());
            this.service.submit(new OpenRegionHandler(this, this, region, htd,
                versionOfOfflineNode));
          }
        }

        builder.addOpeningState(RegionOpeningState.OPENED);
View Full Code Here

      if (region.isRootRegion()) {
        this.service.submit(new OpenRootHandler(this, this, region, htd, version));
      } else if (region.isMetaRegion()) {
        this.service.submit(new OpenMetaHandler(this, this, region, htd, version));
      } else {
        this.service.submit(new OpenRegionHandler(this, this, region, htd, version));
      }
    } catch (IOException ie) {
      // Clear from this server's RIT list else will stick around for ever.
      removeFromRegionsInTransition(region);
      throw ie;
View Full Code Here

      if (region.isRootRegion()) {
        this.service.submit(new OpenRootHandler(this, this, region, htd, version));
      } else if (region.isMetaRegion()) {
        this.service.submit(new OpenMetaHandler(this, this, region, htd, version));
      } else {
        this.service.submit(new OpenRegionHandler(this, this, region, htd, version));
      }
    } catch (IOException ie) {
      // Clear from this server's RIT list else will stick around for ever.
      removeFromRegionsInTransition(region);
      throw ie;
View Full Code Here

            this.service.submit(new OpenMetaHandler(this, this, region, htd,
                versionOfOfflineNode));
          } else {
            updateRegionFavoredNodesMapping(region.getEncodedName(),
                regionOpenInfo.getFavoredNodesList());
            this.service.submit(new OpenRegionHandler(this, this, region, htd,
                versionOfOfflineNode));
          }
        }

        builder.addOpeningState(RegionOpeningState.OPENED);
View Full Code Here

            this.service.submit(new OpenMetaHandler(this, this, region, htd,
                versionOfOfflineNode));
          } else {
            updateRegionFavoredNodesMapping(region.getEncodedName(),
                regionOpenInfo.getFavoredNodesList());
            this.service.submit(new OpenRegionHandler(this, this, region, htd,
                versionOfOfflineNode));
          }
        }

        builder.addOpeningState(RegionOpeningState.OPENED);
View Full Code Here

      if (region.isRootRegion()) {
        this.service.submit(new OpenRootHandler(this, this, region, htd, version));
      } else if (region.isMetaRegion()) {
        this.service.submit(new OpenMetaHandler(this, this, region, htd, version));
      } else {
        this.service.submit(new OpenRegionHandler(this, this, region, htd, version));
      }
    } catch (IOException ie) {
      // Clear from this server's RIT list else will stick around for ever.
      removeFromRegionsInTransition(region);
      throw ie;
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler$PostOpenDeployTasksThread

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.