vamossagar12 commented on code in PR #14372:
URL: https://github.com/apache/kafka/pull/14372#discussion_r1670185646
##########
connect/runtime/src/main/java/org/apache/kafka/connect/util/KafkaBasedLog.java:
##########
@@ -567,13 +567,12 @@ private class WorkThread extends Thread {
public WorkThread() {
super("KafkaBasedLog Work Thread - " + topic);
}
-
@Override
public void run() {
- try {
- log.trace("{} started execution", this);
- while (true) {
- int numCallbacks;
+ while (true) {
+ int numCallbacks = 0;
+ try {
+ log.trace("{} started execution", this);
Review Comment:
Yeah, good catch. Moved it out.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]