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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment