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

RuntimeError is potentially raised when BundleProcessorCache.shutdown called

    XMLWordPrintableJSON

    Details

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

      Description

      Following codes in BundleProcessorCache.shutdown should raise RuntimeError: dictionary changed size during iteration is raised.

      for instruction_id in self.active_bundle_processors:
        self.active_bundle_processors[instruction_id][1].shutdown()
        del self.active_bundle_processors[instruction_id]

      If active_bundle_processors is empty, these codes works fine.
       I found this in following GitHub Actions;
      https://github.com/apache/beam/actions/runs/234476619

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yoshiki.obata yoshiki obata
                Reporter:
                yoshiki.obata yoshiki obata
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m