Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33520

FileNotFoundException when running GPUDriverTest

    XMLWordPrintableJSON

Details

    • Technical Debt
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.18.0
    • 1.19.0
    • Tests

    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

          Activity

            People

              rskraba Ryan Skraba
              rskraba Ryan Skraba
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: