Details
-
Technical Debt
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.18.0
Description
I'd been running into a mysterious error running the flink-external-resources module tests:
java.io.FileNotFoundException: The gpu discovery script does not exist in path /opt/asf/flink/src/test/resources/testing-gpu-discovery.sh. at org.apache.flink.externalresource.gpu.GPUDriver.<init>(GPUDriver.java:98) at org.apache.flink.externalresource.gpu.GPUDriverTest.testGPUDriverWithInvalidAmount(GPUDriverTest.java:64) at
From the command line and IntelliJ, when it seems to works, it always works, and when it fails it always fails. I finally took a moment to figure it out: if the FLINK_HOME environment variable is set (to a valid Flink distribution of any version), this test fails.
This is a very minor irritation, but it's pretty easy to fix.
The workaround is to launch the unit test in an environment where this environment variable is not set.
Attachments
Issue Links
- links to