cluster list-locks

Prev Next

This command lists open byte range locks.

Usage

cluster list-locks --file-path PATH
                  [--tenant-id ID]
                  [--direction prev|next]

Required Parameters

--file-path PATH

Specify the file path within the tenant.

Options

--tenant-id ID

Specify the ID of the tenant where the file resides.

If this option is not specified, the default tenant is used.

--direction prev|next

Set the pagination direction.

--vertical

Formats the output so that the fields for each item are displayed beneath it. If not specified, the fields extend horizontally to the right.

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