File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/main/java/cn/leancloud/kafka/consumer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ public void run() {
153153
154154 unsubscribedStatus = UnsubscribedStatus .ERROR ;
155155 markClosed ();
156- logger .error ("Fetcher quit with unexpected exception. Will rebalance after poll timeout. " , ex );
156+ logger .error ("Fetcher quit with unexpected exception." , ex );
157157 break ;
158158 }
159159 }
Original file line number Diff line number Diff line change @@ -189,8 +189,11 @@ private CompletableFuture<UnsubscribedStatus> setupUnsubscribedFuture() {
189189 // returned CompletableFuture
190190 final CompletableFuture <UnsubscribedStatus > ret = new CompletableFuture <>();
191191 fetcher .unsubscribeStatusFuture ().thenAccept (status -> {
192- close ();
193- ret .complete (status );
192+ try {
193+ close ();
194+ } finally {
195+ ret .complete (status );
196+ }
194197 });
195198 return ret ;
196199 }
You can’t perform that action at this time.
0 commit comments