Skip to content

[ST] MigrationST - some KafkaTopics are not deleted correctly after the migration tests #9975

@im-konge

Description

@im-konge

When we have finalizers enabled in UTO and we are running the MigrationST, from time to time the KafkaTopics cannot be deleted.
The status of such topics is following:

- apiVersion: kafka.strimzi.io/v1beta2
  kind: KafkaTopic
  metadata:
    creationTimestamp: "2024-04-11T14:10:36Z"
    deletionGracePeriodSeconds: 0
    deletionTimestamp: "2024-04-11T14:22:45Z"
    finalizers:
    - strimzi.io/topic-operator
    generation: 2
    labels:
      strimzi.io/cluster: cluster-820b5b0a
      test.case: testMigrationWithDeletionOfCOAndZkDeleteClaimFalse
    name: my-topic-368936459-2026653918-continuous
    namespace: co-namespace
    resourceVersion: "19253"
    uid: 73f22f1f-0b6a-42ed-abf1-9dd67a4e1719
  spec:
    config:
      min.insync.replicas: 2
      retention.ms: 7200000
      segment.bytes: 1073741824
    partitions: 3
    replicas: 3
  status:
    conditions:
    - lastTransitionTime: "2024-04-11T14:27:46.255798715Z"
      message: 'org.apache.kafka.common.errors.TimeoutException: Call(callName=deleteTopics,
        deadlineMs=1712845666154, tries=1, nextAllowedTryMs=1712845666326) timed out
        at 1712845666215 after 1 attempt(s)'
      reason: KafkaError
      status: "False"
      type: Ready
    observedGeneration: 2
    topicId: 38fhq1a8RTWnnnAFvgd1UA
    topicName: my-topic-368936459-2026653918-continuous

For now, the finalizers in UTO were disabled - which fixes the issue now. But we should investigate it more and fix it in the tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions