Skip to content

Commit

Permalink
Merge pull request #938 from bpinhosilva/master
Browse files Browse the repository at this point in the history
Add UNKNOWN_TOPIC_OR_PARTITION check for addMultipleTargetTopics
  • Loading branch information
Nevon committed Nov 4, 2020
2 parents 668b85e + 643f6bc commit 3bd245d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ module.exports = class Cluster {
try {
await this.refreshMetadata()
} catch (e) {
if (e.type === 'INVALID_TOPIC_EXCEPTION') {
if (e.type === 'INVALID_TOPIC_EXCEPTION' || e.type === 'UNKNOWN_TOPIC_OR_PARTITION') {
this.targetTopics = previousTopics
}

Expand Down

0 comments on commit 3bd245d

Please sign in to comment.