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

The regionserver web UIs miss the coprocessors of RegionServerCoprocessorHost.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0, 1.3.1, 2.0.0
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      The critical code is shown below.

      HRegionServer.java
        public String[] getRegionServerCoprocessors() {
          TreeSet<String> coprocessors = new TreeSet<String>();
          try {
            coprocessors.addAll(getWAL(null).getCoprocessorHost().getCoprocessors());
          } catch (IOException exception) {
            LOG.warn("Exception attempting to fetch wal coprocessor information for the common wal; " +
                "skipping.");
            LOG.debug("Exception details for failure to fetch wal coprocessor information.", exception);
          }
          Collection<Region> regions = getOnlineRegionsLocalContext();
          for (Region region: regions) {
            coprocessors.addAll(region.getCoprocessorHost().getCoprocessors());
            try {
              coprocessors.addAll(getWAL(region.getRegionInfo()).getCoprocessorHost().getCoprocessors());
            } catch (IOException exception) {
              LOG.warn("Exception attempting to fetch wal coprocessor information for region " + region +
                  "; skipping.");
              LOG.debug("Exception details for failure to fetch wal coprocessor information.", exception);
            }
          }
          return coprocessors.toArray(new String[coprocessors.size()]);
        }
      

      A case is that the the JMXListener always disappears on the rs web.

      Attachments

        1. HBASE-17344.v0.patch
          2 kB
          Chia-Ping Tsai
        2. HBASE-17344.branch-1.v0.patch
          2 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: