[ https://issues.apache.org/jira/browse/HBASE-16664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15567389#comment-15567389 ]
Duo Zhang commented on HBASE-16664: ----------------------------------- {noformat} * This class is NOT thread safe for reads nor writes. * In the case of writes (Put, Delete), the underlying write buffer can * be corrupted if multiple threads contend over a single HTable instance. * In the case of reads, some fields used by a Scan are shared among all threads. {noformat} HTable is not thread safe so it is not a good idea to share one HTable. The right approach is to share one Connection instance and use new Table instance every time. And I think for a user, I call the batch method, or the multi get method, to me it is one operation. I can increase the operation timeout if I want. > Timeout logic in AsyncProcess is broken > --------------------------------------- > > Key: HBASE-16664 > URL: https://issues.apache.org/jira/browse/HBASE-16664 > Project: HBase > Issue Type: Bug > Reporter: Phil Yang > Assignee: Phil Yang > Attachments: 1.patch, HBASE-16664-branch-1-v1.patch, > HBASE-16664-branch-1-v1.patch, HBASE-16664-branch-1.1-v1.patch, > HBASE-16664-branch-1.2-v1.patch, HBASE-16664-branch-1.3-v1.patch, > HBASE-16664-v1.patch, HBASE-16664-v2.patch, HBASE-16664-v3.patch, > HBASE-16664-v4.patch, HBASE-16664-v5.patch, testhcm.patch > > > Have not checked the root cause, but I think timeout of all operations in > AsyncProcess is broken -- This message was sent by Atlassian JIRA (v6.3.4#6332)