[
https://issues.apache.org/jira/browse/HDDS-9182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal reassigned HDDS-9182:
-----------------------------------
Assignee: Pratyush Bhatt
> LeaseRecovery CLI should have retry option
> ------------------------------------------
>
> Key: HDDS-9182
> URL: https://issues.apache.org/jira/browse/HDDS-9182
> Project: Apache Ozone
> Issue Type: Task
> Components: Ozone CLI
> Reporter: Pratyush Bhatt
> Assignee: Pratyush Bhatt
> Priority: Major
>
> In HDFS, for leaseRecovery CLI we have the option to retry using -retries
> parameter:
> {noformat}
> hdfs debug recoverLease
> recoverLease -path <path> [-retries <num-retries>]
> Recover the lease on the specified path. The path must reside on an
> HDFS filesystem. The default number of retries is 1.{noformat}
> How it works:
> {noformat}
> hdfs debug recoverLease -path /tmp/zdu_1692200498/File.txt -retries 3
> 2023-08-16 19:44:49,543|INFO|Thread-76|machine.py:203 -
> run()||GUID=5b8556a1-f71a-455c-b4be-1fac41995b0a|recoverLease returned false.
> 2023-08-16 19:44:49,544|INFO|Thread-76|machine.py:203 -
> run()||GUID=5b8556a1-f71a-455c-b4be-1fac41995b0a|Retrying in 5000 ms...
> 2023-08-16 19:44:54,544|INFO|Thread-76|machine.py:203 -
> run()||GUID=5b8556a1-f71a-455c-b4be-1fac41995b0a|Retry #1
> 2023-08-16 19:44:54,551|INFO|Thread-76|machine.py:203 -
> run()||GUID=5b8556a1-f71a-455c-b4be-1fac41995b0a|recoverLease SUCCEEDED on
> /tmp/zdu_1692200498/File.txt
> 2023-08-16 19:44:54,908|INFO|Thread-76|machine.py:230 -
> run()||GUID=5b8556a1-f71a-455c-b4be-1fac41995b0a|Exit Code: 0
> 2023-08-16 19:44:54,908|INFO|Thread-76|test_hdfs.py:390 -
> open_files_lr()|Lease Recovery output: recoverLease returned false.
> Retrying in 5000 ms...
> Retry #1
> recoverLease SUCCEEDED on /tmp/zdu_1692200498/File.txt{noformat}
> We should have something similar for ozone, currently in ozone we dont have
> the -retries option for leaseRecovery.
> {noformat}
> ozone debug recover
> Missing required option: '--path=<path>'
> Usage: ozone debug recover --path=<path>
> recover the lease of a specified file. Make sure to specify file system scheme
> if ofs:// is not the default.
> --path=<path> Path to the file{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]