Skip to content

Commit

Permalink
[FLINK-19040][task] Close SourceReader in SourceOperator
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowojski committed Aug 25, 2020
1 parent d4970e2 commit f666b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void sendSourceEventToCoordinator(SourceEvent event) {

@Override
public void close() throws Exception {
sourceReader.close();
eventTimeLogic.stopPeriodicWatermarkEmits();
super.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void testOpen() throws Exception {
finally {
operator.close();
}
assertTrue(mockSourceReader.isClosed());
}

@Test
Expand Down

0 comments on commit f666b81

Please sign in to comment.