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

    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: