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

Perform more effective sorting for RPC Handler Tasks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • Reviewed

    Description

      Under the 'Show All RPC Handler Tasks' tab, the tasks are not sorted according to the duration they have been in the current state (see picture).

      In TaskMonitorTmpl.jamon :

      long now = System.currentTimeMillis();
      Collections.reverse(tasks);
      

      The underlying tasks are backed by CircularFifoBuffer, leading to ineffective sorting.

      We should display tasks with the longest duration (in current state) first.

      Attachments

        1. HBASE-17065.master.001.patch
          1 kB
          Reid Chan
        2. rpc-hdlr-tasks.png
          201 kB
          Ted Yu
        3. Screen Shot 2017-11-01 at 5.38.53 PM.png
          257 kB
          Reid Chan

        Activity

          People

            reidchan Reid Chan
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: