You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by StefanRRichter <gi...@git.apache.org> on 2018/05/07 12:59:03 UTC

[GitHub] flink pull request #5941: [FLINK-8971] [e2e] Include broadcast / union state...

Github user StefanRRichter commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5941#discussion_r186415017
  
    --- Diff: flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/SequenceGeneratorSource.java ---
    @@ -92,42 +92,63 @@
     	@Override
     	public void run(SourceContext<Event> ctx) throws Exception {
     
    -		Random random = new Random();
    +		if (keyRanges.size() > 0) {
    --- End diff --
    
    One suggestion because this methods became a bit long, why not break it down a bit? I would introduce two private methods, e.g., `runActive()` and `runIdle()` which are called in the `if` branches.


---