Skip to content

Commit

Permalink
clean DefaultLitePullConsumerImpl after start fail
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 authored Sep 21, 2024
1 parent 576f0b7 commit 01cb8c7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,12 @@ public synchronized void start() throws MQClientException {

log.info("the consumer [{}] start OK", this.defaultLitePullConsumer.getConsumerGroup());

operateAfterRunning();
try {
operateAfterRunning();
} catch (Exception e) {
shutdown();
throw e;
}

break;
case RUNNING:
Expand Down

0 comments on commit 01cb8c7

Please sign in to comment.