flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aljoscha <...@git.apache.org>
Subject [GitHub] flink pull request #2386: [FLINK-3660] Measure latency and exposes them via ...
Date Fri, 09 Sep 2016 08:55:07 GMT
Github user aljoscha commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2386#discussion_r78148223
  
    --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java
---
    @@ -322,6 +346,151 @@ public final ChainingStrategy getChainingStrategy() {
     		return chainingStrategy;
     	}
     
    +
    +	// ------------------------------------------------------------------------
    +	//  Metrics
    +	// ------------------------------------------------------------------------
    +
    +	// ------- One input stream
    +	public void processLatencyMarker(LatencyMarker latencyMarker) throws Exception {
    +		reportOrForwardLatencyMarker(latencyMarker);
    +	}
    +
    +	// ------- Two input stream
    +	public void processLatencyMarker1(LatencyMarker latencyMarker) throws Exception {
    +		reportOrForwardLatencyMarker(latencyMarker);
    +	}
    +
    +	public void processLatencyMarker2(LatencyMarker latencyMarker) throws Exception {
    +		reportOrForwardLatencyMarker(latencyMarker);
    +	}
    +
    +
    +	protected void reportOrForwardLatencyMarker(LatencyMarker maker) {
    +		if(isSink) {
    --- End diff --
    
    Don't all operators now keep the latency statistics? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message