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

subprocess.Popen hangs after use of gRPC channel

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.12.0
    • sdk-py-core
    • 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

              heejong Heejong Lee
              heejong Heejong Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 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