You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Pratyush Bhatt (Jira)" <ji...@apache.org> on 2023/08/17 06:21:00 UTC

[jira] [Commented] (HDDS-9182) LeaseRecovery CLI should have retry option

    [ https://issues.apache.org/jira/browse/HDDS-9182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755379#comment-17755379 ] 

Pratyush Bhatt commented on HDDS-9182:
--------------------------------------

Not able to assign it to myself, I'm taking a look at this currently.

> 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
>            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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org