You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Abhishek Pal (Jira)" <ji...@apache.org> on 2025/07/11 11:16:00 UTC
[jira] [Created] (HDDS-13424) [Test] AbstractTestChunkManager uses fuser which might not be supported in all OSes
Abhishek Pal created HDDS-13424:
-----------------------------------
Summary: [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: 2.0.0, 1.4.0
Reporter: Abhishek Pal
Assignee: Abhishek Pal
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org