Skip to content

Commit 39dfdaf

Browse files
authored
Update KafkaUtil.php
[WARNING] [AbstractProcess@anonymous\/vendor/hyperf/kafka/src/ConsumerManager.php:81$16a::handle] longlang\phpkafka\Exception\KafkaErrorException: [25] The coordinator is not aware of this member. in vendor/longlang/phpkafka/src/Protocol/ErrorCode.php:385
1 parent f42bfa7 commit 39dfdaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Util/KafkaUtil.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static function retry(ClientInterface $client, AbstractRequest $request,
6666
}
6767
$errorCode = $response->getErrorCode();
6868
if (!ErrorCode::success($errorCode)) {
69+
$client->close();
6970
if ($retry > 0 && ErrorCode::canRetry($errorCode)) {
7071
if ($sleep > 0) {
7172
usleep((int) ($sleep * 1000000));

0 commit comments

Comments
 (0)