Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7696

If classpath directory contains a directory it causes exception in Spark runner staging

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.15.0
    • Component/s: runner-spark
    • Labels:
      None

      Description

      Run the unit test  SparkPipelineStateTest.testBatchPipelineRunningState in IntelliJ IDEA on my mac, get the IllegalArgumentException in the console output. I check the source code, and find the result of PipelineResources.detectClassPathResourcesToStage contains directory, which is the cause of the exception.

      See the attached file 'addJar_exception.jpg' for detail, and the result of PipelineResources.detectClassPathResourcesToStage

      is showed in attached file 'files_contains_dir.jpg' during debug.

        Attachments

        1. files_contains_dir.jpg
          60 kB
          Wang Yanlin
        2. addJar_exception.jpg
          158 kB
          Wang Yanlin

          Activity

            People

            • Assignee:
              yanlin-Lynn Wang Yanlin
              Reporter:
              yanlin-Lynn Wang Yanlin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h