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
Browse filesBrowse the repository at this point in the historyBrowse files
stheppi
committed
fix(cloud-sink): ensure stop() completes cleanup even if writerManager.close() throws
Wrap each teardown step in Try so a failure in one step does not skip the
others. Previously, an exception from writerManager.close() would propagate
out of stop() before indexManager.close() ran, leaking the GC and sweep
ScheduledExecutorService threads, and before CloudSinkMetricsRegistrar.unregister
ran, leaving a stale MBean registered.
Mirrors the closeOnFailure pattern already used in createWriterMan. Each
suppressed exception is logged at WARN so failures are visible.
Made-with: Cursor
Copy file name to clipboardExpand all lines: kafka-connect-cloud-common/src/main/scala/io/lenses/streamreactor/connect/cloud/common/sink/CloudSinkTask.scala
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -303,22 +303,37 @@ abstract class CloudSinkTask[MD <: FileMetadata, C <: CloudSinkConfig[CC], CC <:
0 commit comments