THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
New Protocol Errors
It is proposed to use existing / add these error codes to the protocol.
Error | Description | Requests | |
---|---|---|---|
TopicAlreadyExists | Topic with this name already exists. | CreateTopicRequest | Create |
InvalidTopic (existing) InvalidArgumentTopicName | Topic name contains invalid characters. | CreateTopicRequest | Create, Alter, Delete |
InvalidPartitions InvalidArgumentPartitions | Either partition field is invalid (e.g. negative) | CreateTopicRequest Create , AlterTopicRequest Alter | |
InvalidArgumentReplicationFactor InvalidReplicationFactor | Either replication-factor field is invalid (e.g. negative) | CreateTopicRequestCreate, | |
InvalidArgumentReplicaAssignment InvalidReplicaAssignment | Either replication assignment field is invalid (e.g. contains duplicates) |
| |
InvalidArgumentTopicConfig InvalidTopicConfiguration | Either topic-level config setting or value is incorrect. | CreateTopicRequest Create , AlterTopicRequest Alter | |
DecreasePartitionsNotAllowed | Invalid partitions argument: decreasing partitions is prohibited when altering topic. | AlterTopicRequest | |
PreferredReplicaLeaderElectionInProgress | Preferred replica leader election procedure has been already started. | PreferredReplicaLeaderElectionRequest | |
Alter | |||
ReassignPartitionsInProgress | Reassign partitions procedure has been already started. | AlterTopicRequest | |
MultipleInstructionsForOneTopic | Only one mutation is allowed at once: e.g. change topic replication factor or change topic config. | CreateTopic, AlterTopicRequest | |
MultipleTopicInstructionsInOneBatch | Multiple topic instructions for the same topic in one batch request | Alter |
Generally, the Admin Client (see section 3) or another request dispatcher should have enough context to provide descriptive error message.
The same notation as in A Guide To The Kafka Protocol is used here.
...