tulios / kafkajs

A modern Apache Kafka client for node.js
https://kafka.js.org
MIT License
3.75k stars 527 forks source link

Create delete topic error structure #1646

Open ivanvs opened 11 months ago

ivanvs commented 11 months ago

Connected to https://github.com/tulios/kafkajs/issues/957 and https://github.com/tulios/kafkajs/issues/129

Add information which topics cannot be deleted when user tries to delete topics.

  1. Add KafkaJSDeleteTopicError that is extending KafkaJSProtocolError
  2. Modify v0 parser for deleteTopics to handle errors better
  3. Modify admin API to deal with new deleteTopics error structure