You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "PoAn Yang (Jira)" <ji...@apache.org> on 2025/08/11 02:21:00 UTC

[jira] [Created] (KAFKA-19592) testGenerateAssignmentWithBootstrapServer uses wrong JSON format

PoAn Yang created KAFKA-19592:
---------------------------------

             Summary: 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: PoAn Yang
             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)