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

Nicolas Liochon commented on HBASE-9140:
----------------------------------------

I don't even see where it would be useful to add logs to help debugging. This 
code is called only by HTable, and HTable is not supposed to be used by 
multiple threads.

May be the issue comes from here:
        at com.yahoo.ycsb.db.HBaseClient.cleanup(HBaseClient.java:106)
        at com.yahoo.ycsb.DBWrapper.cleanup(DBWrapper.java:73)

I mean, the YCSB code doing the cleanup could be executed in parallel to the 
'main' one, or is passing a HTable object from a thread to another, with some 
nasty processor cache effects?
                
> NPE in AsyncProcess
> -------------------
>
>                 Key: HBASE-9140
>                 URL: https://issues.apache.org/jira/browse/HBASE-9140
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 0.95.2
>         Environment: 0.95.2 + Hadoop 2.0.4
>            Reporter: Elliott Clark
>
> Running YCSB progress got stuck for quite a while and then a Null Pointer 
> Exception was thrown:
> {noformat}
>  230 sec: 1266253 operations; 0 current ops/sec;  
>  240 sec: 1266253 operations; 0 current ops/sec;  
>  250 sec: 1266253 operations; 0 current ops/sec;  
>  260 sec: 1266253 operations; 0 current ops/sec;  
>  270 sec: 1266253 operations; 0 current ops/sec;  
>  280 sec: 1266253 operations; 0 current ops/sec;  
>  290 sec: 1266253 operations; 0 current ops/sec;  
>  300 sec: 1266253 operations; 0 current ops/sec;  
>  310 sec: 1266253 operations; 0 current ops/sec;  
>  320 sec: 1266253 operations; 0 current ops/sec;  
>  330 sec: 1266253 operations; 0 current ops/sec;  
>  340 sec: 1266253 operations; 0 current ops/sec;  
>  350 sec: 1266253 operations; 0 current ops/sec;  
>  360 sec: 1266253 operations; 0 current ops/sec;  
>  370 sec: 1266253 operations; 0 current ops/sec;  
>  380 sec: 1266253 operations; 0 current ops/sec;  
>  390 sec: 1266253 operations; 0 current ops/sec;  
> Exception in thread "Thread-26" java.lang.NullPointerException
>       at 
> org.apache.hadoop.hbase.client.AsyncProcess.findDestLocation(AsyncProcess.java:288)
>       at 
> org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:233)
>       at 
> org.apache.hadoop.hbase.client.HTable.backgroundFlushCommits(HTable.java:811)
>       at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:1192)
>       at com.yahoo.ycsb.db.HBaseClient.cleanup(HBaseClient.java:106)
>       at com.yahoo.ycsb.DBWrapper.cleanup(DBWrapper.java:73)
>       at com.yahoo.ycsb.ClientThread.run(Client.java:307)
>  400 sec: 1266253 operations; 0 current ops/sec; [UPDATE 
> AverageLatency(us)=1341720] [INSERT AverageLatency(us)=197941421.07] [CLEANUP 
> AverageLatency(us)=1342113] 
> Exception in thread "Thread-16" java.lang.NullPointerException
>       at 
> org.apache.hadoop.hbase.client.AsyncProcess.findDestLocation(AsyncProcess.java:288)
>       at 
> org.apache.hadoop.hbase.client.AsyncProcess.submit(AsyncProcess.java:233)
>       at 
> org.apache.hadoop.hbase.client.HTable.backgroundFlushCommits(HTable.java:811)
>       at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:1192)
>       at com.yahoo.ycsb.db.HBaseClient.cleanup(HBaseClient.java:106)
>       at com.yahoo.ycsb.DBWrapper.cleanup(DBWrapper.java:73)
>       at com.yahoo.ycsb.ClientThread.run(Client.java:307)
>  410 sec: 1266253 operations; 0 current ops/sec;  [INSERT 
> AverageLatency(us)=208462580.75]  
> {noformat}

--
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

Reply via email to