[
https://issues.apache.org/jira/browse/HBASE-16290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16483461#comment-16483461
]
Allan Yang edited comment on HBASE-16290 at 5/22/18 4:10 AM:
-------------------------------------------------------------
[~Sreeram], there is a problem caused by this issue. Except the Java's
LinkedBlockingQueue, the other queue implementations like
BoundedPriorityBlockingQueue and AdaptiveLifoCoDelCallQueue don't implement the
method
{code:java}
public Iterator<CallRunner> iterator()
{code}
this will cause a UnsupportedOperationException exception in
getCallQueueInfo(). Which can be easily be reproduced by the UT
testCallQueueInfo while adding a conf
{code}
conf.set("hbase.ipc.server.callqueue.type", "deadline");
{code}
{code}
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)
{code}
was (Author: allan163):
[~Sreeram], this patch has a problem. Except the Java's LinkedBlockingQueue,
the other queue implementations like BoundedPriorityBlockingQueue and
AdaptiveLifoCoDelCallQueue don't implement the method
{code:java}
public Iterator<CallRunner> iterator()
{code}
this will cause a UnsupportedOperationException exception in
getCallQueueInfo(). Which can be easily be reproduced by the UT
testCallQueueInfo while adding a conf
{code}
conf.set("hbase.ipc.server.callqueue.type", "deadline");
{code}
{code}
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)
{code}
> Dump summary of callQueue content; can help debugging
> -----------------------------------------------------
>
> Key: HBASE-16290
> URL: https://issues.apache.org/jira/browse/HBASE-16290
> Project: HBase
> Issue Type: Bug
> Components: Operability
> Affects Versions: 2.0.0
> Reporter: stack
> Assignee: Sreeram Venkatasubramanian
> Priority: Major
> Labels: beginner
> Fix For: 2.0.0
>
> Attachments: DebugDump_screenshot.png, HBASE-16290.master.001.patch,
> HBASE-16290.master.002.patch, HBASE-16290.master.003.patch,
> HBASE-16290.master.004.patch, HBASE-16290.master.005.patch,
> HBASE-16290.master.006.patch, HBASE-16290.master.007.patch,
> HBASE-16290.master.008.patch, Sample Summary.txt
>
>
> Being able to get a clue what is in a backedup callQueue could give insight
> on what is going on on a jacked server. Just needs to summarize count, sizes,
> call types. Useful debugging. In a servlet?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)