[ 
https://issues.apache.org/jira/browse/KYLIN-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333134#comment-15333134
 ] 

linbao111 commented on KYLIN-1787:
----------------------------------

from HBASE-13527:
     "Ultimately, the end result is that, by default, scan RPC's are limited by 
hbase.server.scanner.max.result.size (note this is the new server side config 
not the client side config) which has a default value of 100 MB."
     "In the event that this value is not changed, the Scan that is serialized 
and sent to the server will also have Scan.maxResultSize = -1. Then, when the 
server is deciding what size limit should be enforced, it sees that 
Scan.maxResultSize = -1 so it uses the most relaxed size restriction possible, 
which is hbase.server.scanner.max.result.size (default value 100 MB)."

    i think the key point to me is that: the kylin "select *" query cause the 
regionserver crashed;and i suspect the reason is 
kylin.hbase.scan.max_result_size(used by setMaxResultSize in 
CubeHBaseRPC#buildScan) not work for this case

    i find KYLIN-1205,or should i post this message on that issue?

     

> Properly deal with limit clause in CubeHBaseEndpointRPC
> -------------------------------------------------------
>
>                 Key: KYLIN-1787
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1787
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v1.5.2
>            Reporter: hongbin ma
>              Labels: newbie
>
> what is the difference between "SELECT * FROM
> MEDIA_SNS.T_MAIL_POP3_LOGIN as T_MAIL_POP3_LOGIN limit 10“ and "SELECT
> count(*) FROM MEDIA_SNS.T_MAIL_POP3_LOGIN as T_MAIL_POP3_LOGIN limit 10"?
>     the second one run success quickly,and the first one failed with:
>     2016-06-15 00:01:02,364 INFO  [BadQueryDetector]
> service.BadQueryDetector:104 : Slow query has been running 10398.763 seconds
> (project:media_sns_mail, thread: 0x34) -- SELECT * FROM
> MEDIA_SNS.T_MAIL_POP3_LOGIN as T_MAIL_POP3_LOGIN  limit 10
>    the regionserver showes error info like:
>    2016-06-15 10:37:08,093 WARN
> [B.DefaultRpcServer.handler=54,queue=4,port=60020] ipc.RpcServer:
> (*responseTooLarge*): {"processingtimems":152140,"call":"ExecService(org.
> apache.hadoop.hbase.protobuf.generated.ClientProtos$CoprocessorServiceRequest)","client":"XXX.XXX.XXX.XXX:45264","starttimems":1465958075952,"queuetimems":0,"class":"HRe
> gionServer","responsesize":*494803440*,"method":"ExecService"}
> 2016-06-15 10:37:08,645 WARN
> [B.DefaultRpcServer.handler=54,queue=4,port=60020] ipc.RpcServer:
> RpcServer.respondercallId: 93695 service: ClientService methodName: Exe
> cService size: 913 connection: XXX.XXX.XXX.XXX:45264: output error
> 2016-06-15 10:37:08,648 WARN
> [B.DefaultRpcServer.handler=54,queue=4,port=60020] ipc.RpcServer:
> B.DefaultRpcServer.handler=54,queue=4,port=60020: caught a ClosedChanne
> lException, this means that the server XXX.XXX.XXX.XXX/XXX.XXX.XXX.XXX:60020
> was processing a request but the client went away. The error message was:
> null
>    pleasse notice infomation about “responseTooLarge“ and
> "responsesize:494803440",but in my enviroment,i set(in kylin.properties):
>    kylin.hbase.scan.cache_rows=10
>    kylin.hbase.scan.max_result_size=102400
>   my hbase is 0.98.16.1 and i notice HBASE-13527;and i also notice some
> difference between CubeHBaseScanRPC and CubeHBaseEndpointRPC
>   CubeHBaseScanRPC  has done something like buildScan(which call
> setMaxResultSize),while CubeHBaseEndpointRPC does not do things like this?
>    may it be a problem?
>    more to be added,the regionserver related with the second failing query
> will be down soon after dealing with this query,jvm gc happen frequentyl



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to