You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: connect-file-pulse-plugin/src/main/java/io/streamthoughts/kafka/connect/filepulse/source/FilePulseSourceTask.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -245,11 +245,14 @@ public List<SourceRecord> poll() throws InterruptedException {
245
245
if (!isTaskRunning()) continue;
246
246
returnresults;
247
247
}
248
-
} catch (finalThrowablet) {
249
-
// This task has failed, so close any resources (maybe reopened if needed) before throwing
248
+
} catch (finalExceptione) {
249
+
if (einstanceofInterruptedException) {
250
+
Thread.currentThread().interrupt();
251
+
}
252
+
// This task has failed, so close any resources before throwing
250
253
LOG.error("This task has failed due to uncaught error and will be stopped.");
Copy file name to clipboardExpand all lines: connect-file-pulse-plugin/src/main/java/io/streamthoughts/kafka/connect/filepulse/source/FileSystemMonitorThread.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,9 @@ void shutdown(final long timeoutMs) {
108
108
LOG.info("Shutting down thread monitoring filesystem.");
0 commit comments