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

RS UI may throw NPE and make rs-status page inaccessible with multiwal and replication

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Sometimes RS UI is unable to open as we get a NPE; This happens because shipper.getCurrentPath() may return null.

      We should have a null check @ ReplicationSource.java#L331 

            Path currentPath = shipper.getCurrentPath();
            try {
              fileSize = getFileSize(currentPath);
            } catch (IOException e) {
              LOG.warn("Ignore the exception as the file size of HLog only affects the web ui", e);
              fileSize = -1;
            }

      Attachments

        Issue Links

          Activity

            People

              nihaljain.cs Nihal Jain
              nihaljain.cs Nihal Jain
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: