Class AdminTopicUtils
java.lang.Object
com.linkedin.venice.controller.kafka.AdminTopicUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intMaximum serialized size of a single admin-topic record, enforced before allocating an execution id.static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetClusterNameFromTopicName(String topicName) static StringgetTopicNameFromClusterName(String clusterName) static booleanisAdminTopic(String topicName) static booleanisKafkaInternalTopic(String topicName)
-
Field Details
-
PARTITION_NUM_FOR_ADMIN_TOPIC
public static final int PARTITION_NUM_FOR_ADMIN_TOPIC- See Also:
-
ADMIN_TOPIC_PARTITION_ID
public static final int ADMIN_TOPIC_PARTITION_ID- See Also:
-
MAX_ADMIN_MESSAGE_PAYLOAD_SIZE_BYTES
public static final int MAX_ADMIN_MESSAGE_PAYLOAD_SIZE_BYTESMaximum serialized size of a single admin-topic record, enforced before allocating an execution id. Aliased toVeniceWriter.DEFAULT_MAX_SIZE_FOR_USER_PAYLOAD_PER_MESSAGE_IN_BYTESto track the producer's default rejection threshold, and is conservatively below ZK'sjute.maxbuffer(~1 MB) so admin ops that pass this check will fit in the eventual znode.Read as a compile-time constant rather than the writer's runtime
getMaxSizeForUserPayloadPerMessageInBytes()so the pre-flight stays independent of whether Venice chunking or pubsub-large-message passthrough is enabled on the admin writer.- See Also:
-
-
Constructor Details
-
AdminTopicUtils
public AdminTopicUtils()
-
-
Method Details
-
getTopicNameFromClusterName
-
getClusterNameFromTopicName
-
isAdminTopic
-
isKafkaInternalTopic
-