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

HMaster does not go down while splitting logs even if explicit shutdown is called.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.92.1, 0.94.0
    • 0.94.1, 0.95.0
    • None
    • None

    Description

      When master starts up and tries to do splitlog, in case of any error we try to do that infinitely in a loop until it succeeds.
      But now if we get a shutdown call, inside SplitLogManager

                if (stopper.isStopped()) {
                  LOG.warn("Stopped while waiting for log splits to be completed");
                  return;
                }
      

      Here we know that the master has stopped. As the task may not be completed now

       if (batch.done != batch.installed) {
            batch.isDead = true;
            tot_mgr_log_split_batch_err.incrementAndGet();
            LOG.warn("error while splitting logs in " + logDirs +
            " installed = " + batch.installed + " but only " + batch.done + " done");
            throw new IOException("error or interrupt while splitting logs in "
                + logDirs + " Task = " + batch);
          }
      

      we throw an exception. In MasterFileSystem.splitLogAfterStartup() we don't check if the master is stopped and we try continously.

      Attachments

        1. 6293.txt
          0.7 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: