File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ class KafkaJSOffsetOutOfRange extends KafkaJSProtocolError {
40
40
41
41
class KafkaJSUnknownTopic extends KafkaJSProtocolError {
42
42
constructor ( e , { topic } ) {
43
- super ( e , { retriable : false } )
43
+ super ( e )
44
44
this . topic = topic
45
45
this . name = 'KafkaJSUnknownTopic'
46
+ this . message = `${ this . message } [${ this . topic } ]`
46
47
}
47
48
}
48
49
@@ -51,6 +52,7 @@ class KafkaJSTopicAuthorizationFailed extends KafkaJSProtocolError {
51
52
super ( e , { retriable : false } )
52
53
this . topic = topic
53
54
this . name = 'KafkaJSTopicAuthorizationFailed'
55
+ this . message = `${ this . message } [${ this . topic } )]`
54
56
}
55
57
}
56
58
class KafkaJSMemberIdRequired extends KafkaJSProtocolError {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const errorCodes = [
24
24
{
25
25
type : 'UNKNOWN_TOPIC_OR_PARTITION' ,
26
26
code : 3 ,
27
- retriable : true ,
27
+ retriable : false ,
28
28
message : 'This server does not host this topic-partition' ,
29
29
} ,
30
30
{
You can’t perform that action at this time.
0 commit comments