apache

/

flink

branch iconrelease-1.9

arrow to build time
clock icon4 hrs, 15 mins, 42 secs

Maximilian Michels avatarMaximilian Michels

[FLINK-16573] Ensure Kinesis RecordFetcher threads shutdown on cancel

The threads may not shut down correctly because they do not check for the
running flag in the inner loops. The threads also do not get interrupted because
they are not connected to the main task thread.

These threads keep lingering around after the job has shut down:

```
Thread 23168: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
- org.apache.flink.streaming.connectors.kinesis.util.RecordEmitter.emitRecords() @bci=140, line=209 (Compiled frame)
- org.apache.flink.streaming.connectors.kinesis.util.RecordEmitter.run() @bci=18, line=177 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=748 (Compiled frame)
```

Reply via email to