You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/03/12 19:53:24 UTC

[GitHub] [flink] tweise commented on a change in pull request #11394: [FLINK-16573] Ensure Kinesis RecordFetcher threads shutdown on cancel

tweise commented on a change in pull request #11394: [FLINK-16573] Ensure Kinesis RecordFetcher threads shutdown on cancel
URL: https://github.com/apache/flink/pull/11394#discussion_r391855589
 
 

 ##########
 File path: flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/util/RecordEmitter.java
 ##########
 @@ -205,6 +205,10 @@ protected void emitRecords() {
 						}
 					}
 				}
+				if (!running) {
 
 Review comment:
   This wouldn't be necessary if the thread was interrupted when the fetcher terminates. Once we confirm that this change has the intended effect, let's merge it and cherry-pick into the other release branches. I will take a look at improving the thread management in the fetcher as a follow-up.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services