DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
- --reassignment-batch-size — caps how many topic partitions are submitted per step (semantics differ slightly depending on mode; see below). 0 preserves legacy behavior (single request for the entire plan).
- --incremental — optional mode used with--reassignment-batch-size > 0 to keep at most Npartition reassignments in flight for this execution, submitting the next partition from a deterministic queue when a slot frees up.
- --reassignment-poll-interval-ms — how long the tool sleeps between polls while waiting for batch completion (non-incremental, between batches) and while driving incremental submissions; default 500 ms.
Ordering for both modes is (topic name, partition index), not the order of entries in the JSON file.
...
Option | Applies to | Semantics |
--reassignment-batch-size <int> | --execute only |
|
--incremental | --execute only | Requires --reassignment-batch-size > 0. Mutually exclusive interpretation of batch size as in-flight cap (see above). |
--reassignment-poll-interval-ms <long> | --execute only | Milliseconds to sleep between progress polls when the tool is waiting on reassignment state. Default 500. |
Validation and compatibility
...
- int reassignmentBatchSize
- boolean incremental
- long reassignmentPollIntervalMs
Existing callers that omit pacing pass 0 and false to preserve legacy behaviour.
...
- Sort partitions deterministically (compareTopicPartitions).
- Maintain a pending deque and an in-flight map (submissions for this execute only).
- Loop until pending is empty: remove completed partitions from in-flight (using the same completion predicate as non-incremental wait paths), then submit new partitions up to the N in-flight cap.
- Poll interval between iterations when work remains: INCREMENTAL_REASSIGNMENT_POLL_INTERVAL_MS (500 ms in the default implementation).
...
Non-incremental wait between batches
- Poll interval: BATCH_REASSIGNMENT_POLL_INTERVAL_MSreassignmentPollIntervalMs (500 ms in the reference implementation).
- Completion uses existing findPartitionReassignmentStates / PartitionReassignmentState logic; inconsistent terminal states produce TerseException (same class of errors as today’s verify path).
...