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

HMaster#splitLogAndExpireIfOnline actually does it if the server is NOT online

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • master, Region Assignment
    • None

    Description

      This has been there for some time. It is a surprise to find it is reversed actually. Did I missing anything?

      I think it really means to do it if the server is online.

        private void splitLogAndExpireIfOnline(final ServerName sn)
            throws IOException {
          if (sn == null || !serverManager.isServerOnline(sn)) {
            return;
          }
          LOG.info("Forcing splitLog and expire of " + sn);
          fileSystemManager.splitLog(sn);
          serverManager.expireServer(sn);
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: