-
Bug
-
Resolution: Done
-
Minor
-
2.5.0.Final, 2.5.1.Final, 2.6.0.Alpha1
-
None
-
False
-
None
-
False
-
-
-
Low
try { executeStopWatch.start(); changeEventSink.execute(records); executeStopWatch.stop(); } catch (Throwable throwable) { // Capture failure LOGGER.error("Failed to process record: {}", throwable.getMessage(), throwable); } putStopWatch.stop(); LOGGER.trace("[PERF] Total put execution time {}", putStopWatch.durations()); LOGGER.trace("[PERF] Sink execute execution time {}", executeStopWatch.durations());
For example, in the code above if the changeEventSink.execute(records); throws an exception the executeStopWatch.durations() will throw a NPE, since not stop method has been called.
Let Stopwatch to be more resilient in this case.
- links to
-
RHEA-2024:129636 Red Hat build of Debezium 2.5.4 release