Skip to content

Commit

Permalink
[GOBBLIN-2038] Fix bug where monitor startup is never occurring (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Lo authored Apr 8, 2024
1 parent 698b351 commit a25c839
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,16 @@ public synchronized void setActive() {
return;
}

if (isActive) {
this.isActive = true;
initializeMonitor();
// Method that starts threads that processes queues
processQueues();
// Main thread that constantly polls messages from kafka
consumerExecutor.execute(() -> {
while (!shutdownRequested) {
consume();
}
});
}
this.isActive = true;
initializeMonitor();
// Method that starts threads that processes queues
processQueues();
// Main thread that constantly polls messages from kafka
consumerExecutor.execute(() -> {
while (!shutdownRequested) {
consume();
}
});
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ public synchronized void setActive() {
return;
}

if (isActive) {
this.isActive = true;
super.startUp();
}
this.isActive = true;
super.startUp();
}

@Override
Expand Down

0 comments on commit a25c839

Please sign in to comment.