Class MiniHBaseCluster.MiniHBaseClusterRegionServer

All Implemented Interfaces:
Runnable, Abortable, ConnectionRegistryEndpoint, ConfigurationObserver, FavoredNodesForRegion, LastSequenceId, MutableOnlineRegions, OnlineRegions, RegionServerServices, Server, Stoppable
Enclosing class:
MiniHBaseCluster

Subclass so can get at protected methods (none at moment). Also, creates a FileSystem instance per instantiation. Adds a shutdown own FileSystem on the way out. Shuts down own Filesystem only, not All filesystems as the FileSystem system exit hook does.
  • Field Details

    • user

      private User user
    • killedServers

      List of RegionServers killed so far. ServerName also comprises startCode of a server, so any restarted instances of the same server will have different ServerName and will not coincide with past dead ones. So there's no need to cleanup this list.
  • Constructor Details

  • Method Details

    • run

      public void run()
      Description copied from class: HRegionServer
      The HRegionServer sticks in this loop until closed.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class HRegionServer
    • runRegionServer

      private void runRegionServer()
    • kill

      protected void kill()
      Overrides:
      kill in class HRegionServer
    • abort

      public void abort(String reason, Throwable cause)
      Description copied from class: HRegionServer
      Cause the server to exit without closing the regions it is serving, the log it is using and without notifying the master. Used unit testing and on catastrophic events such as HDFS is yanked out from under hbase or we OOME. the reason we are aborting the exception that caused the abort, or null
      Specified by:
      abort in interface Abortable
      Overrides:
      abort in class HRegionServer
      Parameters:
      reason - Why we're aborting.
      cause - Throwable that caused abort. Can be null.
    • abortRegionServer

      private void abortRegionServer(String reason, Throwable cause)