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

Use Accumulable MetricsContainers in the DirectRunner

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • runner-direct
    • None

    Description

      Once PR 2649 is submitted, we should be able to use the accumulable functionality to clean up the DirectRunner. Since this runner updates metrics from multiple processing threads simultaneously, we will need to figure out how to either (1) make the accumulable behavior thread safe or (2) have a non-blocking way of performing the accumulation sequentially.

      If we go with (2), we can put updated containers in a queue and then have a single thread trying to apply those updates.

      https://github.com/apache/beam/blob/master/runners/direct-java/src/main/java/org/apache/beam/runners/direct/WatermarkManager.java#L912)

      Attachments

        Activity

          People

            Unassigned Unassigned
            bchambers Ben Chambers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: