Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

New Protocol Errors

It is proposed to use existing / add these error codes to the protocol.

Error

Description

Requests
TopicAlreadyExistsTopicExistsTopic with this name already exists.CreateTopic
InvalidTopic (existing)Topic name contains invalid characters or doesn't exist.CreateTopic, AlterTopic, DeleteTopic
InvalidPartitionsPartitions field is invalid (e.g. negative or increasing number of partitions in existing topic)CreateTopic, AlterTopic
InvalidReplicationFactorReplicationFactor field is invalid (e.g. negative)CreateTopic, AlterTopic
InvalidReplicaAssignmentReplicaAssignment field is invalid (e.g. contains duplicates)

CreateCreateTopic, AlterTopic

InvalidTopicConfigurationInvalidConfiguration

Either topic-level config setting or value is incorrect.

Create
DecreasePartitionsNotAllowedInvalid Partitions argument: decreasing partitions is prohibited when altering topic.Alter
ReassignPartitionsInProgressReassign partitions procedure has been already started.AlterCreateTopic

Generally, a client should have enough context to provide descriptive error message.

The same notation as in  A Guide To The Kafka Protocol is used here. 

...