Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14499

Master coprocessors shutdown will not happen on master abort

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 1.3.2, 2.0.0, 1.2.7
    • master
    • None
    • Reviewed

    Description

      In HMaster,

      @Override
        public void abort(final String msg, final Throwable t) {
          if (isAborted() || isStopped()) {
            return;
          }
          if (cpHost != null) {
            // HBASE-4014: dump a list of loaded coprocessors.
            LOG.fatal("Master server abort: loaded coprocessors are: " +
                getLoadedCoprocessors());
          }
          if (t != null) LOG.fatal(msg, t);
          stop(msg);
        }
      

      Here we are invoking stop(...) of HRegionServer, which will try to stop RS coprocessors if rsHost is not NULL.
      So Master coprocessors will not be stopped. We should invoke stopMaster() instead of stop(...).

      Attachments

        1. HBASE-14499.patch
          0.9 kB
          Pankaj Kumar
        2. HBASE-14499.patch
          0.9 kB
          Pankaj Kumar

        Activity

          People

            pankaj2461 Pankaj Kumar
            pankaj2461 Pankaj Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: