arne-alex commented on code in PR #23333:
URL: https://github.com/apache/beam/pull/23333#discussion_r995466756
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java:
##########
@@ -1197,13 +1201,25 @@ public State getState() {
}
public void setState(State state) {
+ Instant now = Instant.now();
+ Duration stateDuration = new Duration(this.stateStartTime, now);
+ Duration previousStateDuration = totalDurations.getOrDefault(this.state,
Duration.ZERO);
+ totalDurations.put(this.state,
stateDuration.plus(previousStateDuration));
Review Comment:
Done (after next force push)
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingDataflowWorker.java:
##########
@@ -2377,12 +2399,48 @@ public List<Windmill.KeyedGetDataRequest>
getKeysToRefresh(Instant refreshDeadli
ShardedKey shardedKey = entry.getKey();
for (Work work : entry.getValue()) {
if (work.getStartTime().isBefore(refreshDeadline)) {
- result.add(
+ Map<Windmill.LatencyAttribution.State, Duration> durations =
Review Comment:
Done (after next force push)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]