Browse Source
Merge pull request #7323 from abpframework/liangshiwei/kafka
Enhanced topic already exists condition
pull/7334/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Kafka/Volo/Abp/Kafka/KafkaMessageConsumer.cs
|
|
@ -86,7 +86,7 @@ namespace Volo.Abp.Kafka |
|
|
} |
|
|
} |
|
|
catch (CreateTopicsException e) |
|
|
catch (CreateTopicsException e) |
|
|
{ |
|
|
{ |
|
|
if (!e.Error.Reason.Contains($"Topic '{TopicName}' already exists")) |
|
|
if(e.Results.First().Error.Code != ErrorCode.TopicAlreadyExists) |
|
|
{ |
|
|
{ |
|
|
throw; |
|
|
throw; |
|
|
} |
|
|
} |
|
|
|