hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azuryy Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-7251) Avoid flood logs during client disconnect during batch get operation
Date Sat, 01 Dec 2012 14:06:03 GMT
Azuryy Yu created HBASE-7251:

             Summary: Avoid flood logs during client disconnect during batch get operation
                 Key: HBASE-7251
                 URL: https://issues.apache.org/jira/browse/HBASE-7251
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.94.2
            Reporter: Azuryy Yu
             Fix For: 0.94.3


a smart guy in the company want to read data from the HBASE in batch, the code like this(just
demonstrate, not runnable):

List<Get> gets = new ArrayList<Get>();

for(int i =0; i < n; ++i){
  gets.add("some row key here");
  if (i % 10000 == 0){
    Results[] results = htable.get(gets);
    //process results here. 
    //delete some code

Yes, you know that, this guy forgot "gets.clear()"  after each "htable.get()" operation in
his code.

One region server becomes very slow, and crashed after 30mins, and we got 15GB log file.
there are flood logs as following:

ERROR org.apache.hadoop.hbase.regionserver.HRegionServer:
org.apache.hadoop.hbase.ipc.CallerDisconnectedException: Aborting call multi(org.apache.hadoop.hbase.client.MultiAction@49540d8d),
rpc version=1, client version=29, methodsFingerPrint=-56040613 from after
3980 ms, since caller disconnected
        at org.apache.hadoop.hbase.ipc.HBaseServer$Call.throwExceptionIfCallerDisconnected(HBaseServer.java:436)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:3468)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:3425)
        at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.next(HRegion.java:3449)
        at org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:4198)
        at org.apache.hadoop.hbase.regionserver.HRegion.get(HRegion.java:4171)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.get(HRegionServer.java:1993)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.multi(HRegionServer.java:3410)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1409)

Server is stop "get" but cannot exit from the "for" loop, so write flood logs here.
My patch just log one exception log instead of flood logs. 
Importantly, server stop processing immediately if client timeout or disconnect.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message