Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10061

Flaky Test `ReassignPartitionsIntegrationTest .testCancellation`

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      None

      Description

      We have seen this a few times:

      org.scalatest.exceptions.TestFailedException: Timed out waiting for verifyAssignment result VerifyAssignmentResult(Map(foo-0 -> PartitionReassignmentState(List(0, 1, 3, 2),List(0, 1, 3),false), baz-1 -> PartitionReassignmentState(List(0, 2, 3, 1),List(0, 2, 3),false)),true,Map(),false).  The latest result was VerifyAssignmentResult(Map(foo-0 -> PartitionReassignmentState(ArrayBuffer(0, 1, 3),List(0, 1, 3),true), baz-1 -> PartitionReassignmentState(ArrayBuffer(0, 2, 3),List(0, 2, 3),true)),false,HashMap(),false)
      

      It looks like the reassignment is completing earlier than the test expects. See the following from the log:

      Successfully started partition reassignments for baz-1,foo-0
      ==> verifyAssignment(adminClient, jsonString={"version":1,"partitions":[{"topic":"foo","partition":0,"replicas":[0,1,3],"log_dirs":["any","any","any"]},{"topic":"baz","partition":1,"replicas":[0,2,3],"log_dirs":["any","any","any"]}]})
      Status of partition reassignment:
      Reassignment of partition baz-1 is still in progress.
      Reassignment of partition foo-0 is complete.
      

      A successful run looks like this:

      Successfully started partition reassignments for baz-1,foo-0
      ==> verifyAssignment(adminClient, jsonString={"version":1,"partitions":[{"topic":"foo","partition":0,"replicas":[0,1,3],"log_dirs":["any","any","any"]},{"topic":"baz","partition":1,"replicas":[0,2,3],"log_dirs":["any","any","any"]}]})
      Status of partition reassignment:
      Reassignment of partition baz-1 is still in progress.
      Reassignment of partition foo-0 is still in progress.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hachikuji Jason Gustafson
                Reporter:
                hachikuji Jason Gustafson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: