Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections

...

Code Block
languagejava
linenumberstrue
public class AlterPartitionCountsOptions {
    public AlterPartitionCountsOptions() { ... }
    public// TODO validateOnly?
    public Integer timeoutMs() { ... }
    public AlterPartitionCountsOptions timeoutMs(Integer timeoutMs) { ... }
}
 
public class AlterPartitionCountsResult {
    // package access constructor
    Map<String, KafkaFuture<Void>> values() { ... }
    KafkaFuture<Void> all() { ... }
}

...

Code Block
languagejava
linenumberstrue
public class AlterReplicationFactorsOptions {
    public AlterReplicationFactorsOptions() { ... }
    // TODO validateOnly?
    public Integer timeoutMs() { ... }
    public AlterReplicationFactorsOptions timeoutMs(Integer timeoutMs) { ... }
}
public class AlterReplicationFactorsResult {
    // package access constructor
   Map<String Map<String, KafkaFuture<Void>> values() { ... }
    KafkaFuture<Void> all() { ... }
}

...

No Format
AlterPartitionCountsRequest => [topic_partition_count] timeout
  topic_partition_count => topic partition_count
    topic => STRING
    partition_count => INT32
  timeout => INT32
  // TODO: validate_only and/or timeout flags?

Where

FieldDescription
topicthe name of a topic
partition_countthe new partition count
timeout

The maximum time to await a response in ms.

The request will require the ALTER operation on the Topic resource.

...

FieldDescription
throttle_time_msduration in milliseconds for which the request was throttled
topicthe name of a topic in the request
error_codean error code for that topic
error_messagemore detailed information about any error for that topic

Anticipated errors:

  • CLUSTERTOPIC_AUTHORIZATION_FAILED (31) Authorization failed29) The user lacked Alter on the topic
  • INVALID_TOPIC_EXCEPTION (17) If the topic doesn't exist
  • INVALID_PARTITIONS (37) If the num_partitions was invalid
  • INVALID_REQUEST (42) If duplicate topics appeared in the request.
  • NONE (0) The topic partition count was changed successfully.

...

No Format
AlterReplicationFactorsRequest => [topic_replication_factor] timeout
  topic_replication_factor => topic replication_factor
    topic => STRING
    replication_factor => INT16
  timeout => INT32
  // TODO: validate_only and/or timeout flags?

Where

FieldDescription
topictopic name
replication_factorthe new replication factor for this topic
timeoutThe maximum time to await a response in ms.

The request will require the ClusterAction operation on the CLUSTER resource, since it can require significant inter-broker communication.

...

No Format
ReassignPartitionsRequest => [reassigned_topic] timeout validate_only
  reassigned_topic => topic [reassigned_partition]
    topic => STRING
    reassigned_partition => partitiodpartition_id [broker]
      partition_id => INT32
      broker => INT32
  timeout  validate=> INT32
  validate_only => BOOLEAN

Where

FieldDescription
topicthe name of a topic
partition_ida partition of that topic
brokera broker id
timeoutThe maximum time to await a response in ms.
validate_onlywhen true: validate the request, but don't actually reassign the partitions

...