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

UnsupportedOperationException may thrown when calling getCallQueueInfo()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • None
    • None

    Description

      HBASE-16290 added a new feature to dump queue info, the method getCallQueueInfo() need to iterate the queue to get the elements in the queue. But, except the Java's LinkedBlockingQueue, the other queue implementations like BoundedPriorityBlockingQueue and AdaptiveLifoCoDelCallQueue don't implement the method iterator(). If those queues are used, a UnsupportedOperationException will be thrown.
      This can be easily be reproduced by the UT testCallQueueInfo while adding a conf: conf.set("hbase.ipc.server.callqueue.type", "deadline")

      java.lang.UnsupportedOperationException
      	at org.apache.hadoop.hbase.util.BoundedPriorityBlockingQueue.iterator(BoundedPriorityBlockingQueue.java:285)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor.getCallQueueCountsSummary(RpcExecutor.java:166)
      	at org.apache.hadoop.hbase.ipc.SimpleRpcScheduler.getCallQueueInfo(SimpleRpcScheduler.java:241)
      	at org.apache.hadoop.hbase.ipc.TestSimpleRpcScheduler.testCallQueueInfo(TestSimpleRpcScheduler.java:164)
      

      Attachments

        1. HBASE-20611.master.007.patch
          15 kB
          Xu Cang
        2. HBASE-20611.master.006.patch
          15 kB
          Xu Cang
        3. HBASE-20611.master.005.patch
          15 kB
          Xu Cang
        4. HBASE-20611.master.004.patch
          15 kB
          Xu Cang
        5. HBASE-20611.master.003.patch
          16 kB
          Xu Cang
        6. HBASE-20611.master.002.patch
          3 kB
          Xu Cang

        Issue Links

          Activity

            People

              xucang Xu Cang
              allan163 Allan Yang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: