Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
Rustin170506 committed Jun 2, 2023
1 parent ff6fa2d commit 1854e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdc/sink/mq/manager/kafka_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ func (m *kafkaTopicManager) CreateTopicAndWaitUntilVisible(topicName string) (in
m.tryUpdatePartitionsAndLogging(topicName, partitionNum)
return partitionNum, nil
}
} else {
} else if detail.Err != sarama.ErrUnknownTopicOrPartition {
log.Error("Kafka admin client describe topic failed",
zap.String("namespace", m.changefeedID.Namespace),
zap.String("changefeed", m.changefeedID.ID),
zap.String("topic", topicName),
zap.Error(err))
return 0, errors.Trace(err)
zap.Error(detail.Err))
return 0, errors.Trace(detail.Err)
}
}

Expand Down

0 comments on commit 1854e38

Please sign in to comment.