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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.1.0
    • Fix Version/s: 3.0.0, 1.5.0, 2.2.0, 2.1.3
    • Component/s: Replication, UI
    • Labels:
      None
    • 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: