[
https://issues.apache.org/jira/browse/KAFKA-19592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
PoAn Yang resolved KAFKA-19592.
-------------------------------
Resolution: Fixed
> testGenerateAssignmentWithBootstrapServer uses wrong JSON format
> ----------------------------------------------------------------
>
> Key: KAFKA-19592
> URL: https://issues.apache.org/jira/browse/KAFKA-19592
> Project: Kafka
> Issue Type: Test
> Reporter: PoAn Yang
> Assignee: TaiJuWu
> Priority: Major
> Fix For: 4.2.0
>
>
> In ReassignPartitiosnsCommand#generateAssignment, it uses JSON format like:
>
> {code:java}
> {
> "topics": [
> { "topic": "foo1" },
> { "topic": "foo2" }
> ],
> "version": 1
> } {code}
> However, in
> ReassignPartitionsCommandTest#testGenerateAssignmentWithBootstrapServer, it
> uses input like:
> {code:java}
> {
> "version":1,
> "partitions": [
> {
> "topic": "foo",
> "partition": 0,
> "replicas": [3, 1, 2],
> "log_dirs": ["any","any","any"]
> }
> ]
> }{code}
> The test case can pass, but it doesn't test `generateAssignment` correctly.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)