You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "devabhishekpal (via GitHub)" <gi...@apache.org> on 2025/07/11 11:25:25 UTC

[PR] HDDS-13424. Use lsof instead of fuser to find if file is used [ozone]

devabhishekpal opened a new pull request, #8790:
URL: https://github.com/apache/ozone/pull/8790

   ## What changes were proposed in this pull request?
   HDDS-13424. Use lsof instead of fuser to find if file is used
   
   Please describe your PR in detail:
   * 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, for example in a minimal RHEL 8 environment fuser is not present by default and needs to be installed via psmisc package.
   * An alternative to this is to use the `lsof` command to figure out if the file is being used.
   * This PR changes fuser to instead use `lsof` to run the tests to ensure compatibility in different OS environments
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-13424
   
   ## How was this patch tested?
   Patch was tested manually by running the affected unit tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-13424. Use lsof instead of fuser to find if file is used [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #8790:
URL: https://github.com/apache/ozone/pull/8790


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org