You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "lixiaobao (JIRA)" <ji...@apache.org> on 2018/11/28 01:50:00 UTC
[jira] [Updated] (HBASE-21392) HTable can still write data after
calling the close method.
[ https://issues.apache.org/jira/browse/HBASE-21392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lixiaobao updated HBASE-21392:
------------------------------
Summary: HTable can still write data after calling the close method. (was: HTable can also write data after calling the close method.)
> HTable can still write data after calling the close method.
> -----------------------------------------------------------
>
> Key: HBASE-21392
> URL: https://issues.apache.org/jira/browse/HBASE-21392
> Project: HBase
> Issue Type: Improvement
> Components: Client
> Environment: HBase 1.2.0
> Reporter: lixiaobao
> Assignee: lixiaobao
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> HTable can also write data after calling the close method.
> val conn = ConnectionFactory.createConnection(conf)
> val codoPut = new Put(rowKey4.getBytes())
> codoPut.addColumn("cf".getBytes(), columnField.getBytes(), endTimeLong, Bytes.toBytes(line.getLong(8)))
> codo.put(codoPut)
> codo.close()
>
> val codoPut = new Put(rowKey4.getBytes())
> codoPut.addColumn("cf".getBytes(), columnField.getBytes(), endTimeLong, Bytes.toBytes(line.getLong(8)))
> codo.put(codoPut)
> after call close method ,can alse write data into HBase.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)