cluster list-locks

Prev Next

This command lists open byte range locks.

Usage

cluster list-locks --path FILE_PATH
                  [--tenant-id TENANT_ID]
                  [--direction prev|next]

Required Parameters

--path FILE_PATH

Specifies the file path.

Specify FILE_PATH as the full file path relative to the tenant.

Options

--tenant-id TENANT_ID

Specifies the tenant under which the file resides.

Defaults to the default tenant.

--direction prev|next

Specifies pagination direction.

Example

vcli: admin> cluster list-locks --path /open.txt
+------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+
| Type | Create-Time | Caller | Owner | Exclusive | Offset | Length | Svid | State | Lock-path | Tenant-name | Open-id | Lock-id | Lock-granted-type | Client-id | Create-time-seconds |
+------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+
+------+-------------+--------+-------+-----------+--------+--------+------+-------+-----------+-------------+---------+---------+-------------------+-----------+---------------------+