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

subprocess.Popen hangs after use of gRPC channel

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      subprocess.Popen randomly hangs after use of gRPC channel. This makes cross-language wordcount test fail because the test uses Popen to launch Dockerized Flink job server in `PortableRunner.run_pipeline` after use of gRPC channel for the expansion service in `ExternalTransform.expand`. Few symptoms are listed below:

      • Hanging at `docker_path = check_output(['which', 'docker']).strip()`
      • Hanging at `self.docker_process = Popen(cmd)`
      • Crashing with `assertion failed: pthread_mutex_lock(mu) == 0` message

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                heejong Heejong Lee
                Reporter:
                heejong Heejong Lee
              • 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 - 2h 40m
                  2h 40m