conduktor.io ↗

Kafka Exception PolicyViolationException

org.apache.kafka.common.errors.PolicyViolationException
Non-retriable Admin

Exception thrown if a create topics request does not satisfy the configured policy for a topic.

Common Causes

Solutions

Example Stack Trace

org.apache.kafka.common.errors.PolicyViolationException: Request parameters do not satisfy the configured policy.

Diagnostic Commands

# Look for policy violation events in logs grep 'POLICY_VIOLATION\|PolicyViolation\|policy' /var/log/kafka/server.log | tail -20 # Check broker policy configuration kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --describe | grep policy

Related

Protocol error: POLICY_VIOLATION (code 44)

Related Admin exceptions: InvalidConfigurationException · InvalidPartitionsException · InvalidReplicationFactorException · InvalidTopicException · ThrottlingQuotaExceededException · TopicExistsException · UnsupportedVersionException

Hitting PolicyViolationException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.