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

Expose checkQuota to Coprocessor Endpoints

    XMLWordPrintableJSON

Details

    • For backward compatibility purposes, default, throwing implementations are provided for the new methods for 2.7.0 and 2.6.1. Custom implementation that want to take advantage of the new functionality should override those methods as appropriate.

    Description

      Coprocessor endpoints may do non-trivial amounts of work, yet quotas do not throttle them. We can't generically apply quotas to coprocessors because we have no information on what a particular endpoint might do. One thing we could do is expose checkQuota to the RegionCoprocessorEnvironment. This way, coprocessor authors have the tools to ensure that quotas cover their implementations.

      While adding this, we can update AggregationImplementation to call checkQuota since those endpoints can be quite expensive.

      Attachments

        Issue Links

          Activity

            People

              charlesconnell Charles Connell
              bbeaudreault Bryan Beaudreault
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: