[
https://issues.apache.org/jira/browse/HDDS-13424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-13424.
-------------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
> [Test] AbstractTestChunkManager uses fuser which might not be supported in
> all OSes
> -----------------------------------------------------------------------------------
>
> Key: HDDS-13424
> URL: https://issues.apache.org/jira/browse/HDDS-13424
> Project: Apache Ozone
> Issue Type: Bug
> Affects Versions: 1.4.0, 2.0.0
> Reporter: Abhishek Pal
> Assignee: Abhishek Pal
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.1.0
>
>
> Currently the AbstractTestChunkManager.isFileNotInUse() method uses *fuser*
> command to determine if a file is in use or not.
> However in different OS environments this might not be present.
> One such scenario is in a minimal RHEL 8 environment where fuser is not
> present by default and needs to be installed via *psmisc* package.
> One alternative to this is to use the *lsof* command to figure out if the
> file is being written to as follows:
> {code:bash}
> lsof -f -- <path to the file>
> {code}
> This ticket is to track the effort to replace the usage of fuser with lsof to
> maintain compatibility with other linux distributions as well where the fuser
> utility might not be present.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]