Note
This parameter is available starting with V4.4.2.
Overview
enable_hbase_rowkey_ttl specifies whether to enable or disable the rowkey TTL feature in OceanBase Key-Value-HBase. When this feature is enabled, expired rowkeys can be deleted. The system marks expired rowkeys during queries, and background tasks periodically clean up expired columns or multi-version data corresponding to these rowkeys. If this feature is disabled, even if enable_kv_ttl is enabled, only the normal TTL takes effect and rowkeys cannot be deleted upon expiration.
Privilege requirements
Query parameters
The
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Boolean |
| Default Value | False |
| Value range |
|
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No. The setting takes effect immediately. |
Configuration example
Enable the Rowkey TTL feature:
obclient> ALTER SYSTEM SET enable_hbase_rowkey_ttl = true;
