beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviem Zur (JIRA)" <>
Subject [jira] [Created] (BEAM-2812) Dropped windows counters / log prints no longer working
Date Mon, 28 Aug 2017 07:50:00 GMT
Aviem Zur created BEAM-2812:

             Summary: Dropped windows counters / log prints no longer working
                 Key: BEAM-2812
             Project: Beam
          Issue Type: Bug
          Components: runner-spark
            Reporter: Aviem Zur
            Assignee: Amit Sela

In aggregators were removed from Spark runner, this
caused regression around dropped windows counters and logs.

{{CounterCell}} instances are created ad hoc instead of using the {{Metrics}} class static
factory methods: [|]
Context of where the metrics are reported isn't taken into account, and since these counters
are being passed to a lazily evaluated iterator [|]
the subsequent code which looks at the counters is always looking at these counters immediately
after initialization, before they are populated, so these prints will never happen since the
conditional statements do not check on the right counters [|].

Additionally, {{org.apache.beam.runners.core.LateDataUtils#dropExpiredWindows}} now takes
a {{CounterCell}} as a parameter, which is a class for metrics implementation and should generally
not be used elsewhere (this is also mentioned in its Javadoc), we should look into changing
this method to use something else and perhaps make {{CounterCell}} and similar classes package
private (And change runner code which uses these to be in the same package).

This message was sent by Atlassian JIRA

View raw message