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

[PR] HDDS-12967. Skip CommonChunkManagerTestCases.testFinishWrite if external program fuser cannot be started [ozone]

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

   ## What changes were proposed in this pull request?
   
   `testFinishWrite` fails if external program `fuser` is not available.
   
   ```
   Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.136 s <<< FAILURE! -- in org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerBlockStrategy
   org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerBlockStrategy.testFinishWrite -- Time elapsed: 0.094 s <<< FAILURE!
   org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
   	at org.apache.hadoop.ozone.container.keyvalue.impl.CommonChunkManagerTestCases.testFinishWrite(CommonChunkManagerTestCases.java:242)
   ```
   
   ```
   java.io.IOException: Cannot run program "fuser": error=2, No such file or directory
   	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
   	at org.apache.hadoop.ozone.container.keyvalue.impl.AbstractTestChunkManager.isFileNotInUse(AbstractTestChunkManager.java:142)
   	at org.apache.hadoop.ozone.container.keyvalue.impl.AbstractTestChunkManager.checkChunkFilesClosed(AbstractTestChunkManager.java:179)
   	at org.apache.hadoop.ozone.container.keyvalue.impl.AbstractTestChunkManager.checkChunkFilesClosed(AbstractTestChunkManager.java:160)
   	at org.apache.hadoop.ozone.container.keyvalue.impl.CommonChunkManagerTestCases.testFinishWrite(CommonChunkManagerTestCases.java:242)
   ```
   
   Skip the test case if this happens.
   
   https://issues.apache.org/jira/browse/HDDS-12967
   
   ## How was this patch tested?
   
   ```
   $ sudo chmod 644 /usr/bin/fuser
   $ mvn -am -pl :hdds-container-service -Dtest='TestFilePer*Strategy' clean test
   ...
   Tests run: 12, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 3.979 s -- in org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerBlockStrategy
   Tests run: 11, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 3.329 s -- in org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerChunkStrategy
   ...
   
   $ sudo chmod 755 /usr/bin/fuser
   $ mvn -am -pl :hdds-container-service -Dtest='TestFilePer*Strategy' clean test
   ...
   Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.110 s -- in org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerBlockStrategy
   Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.282 s -- in org.apache.hadoop.ozone.container.keyvalue.impl.TestFilePerChunkStrategy
   ...
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/14831498078
   


-- 
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-12967. Skip CommonChunkManagerTestCases.testFinishWrite if fuser cannot be started [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8389:
URL: https://github.com/apache/ozone/pull/8389#issuecomment-2855091627

   Thanks @jojochuang for the review.


-- 
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-12967. Skip CommonChunkManagerTestCases.testFinishWrite if fuser cannot be started [ozone]

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


-- 
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