Skip to content

Acls are not deleted correctly when mark_others_as_absent is true #190

@MacWayzer

Description

@MacWayzer

Current configuration
Only these acls are present in Kafka

      kafka_acls:
        acls:
          - name: topic_
            acl_resource_type: 'topic'
            acl_principal: 'User:user3'
            acl_operations:
              - 'describe'
              - 'write'
            acl_permission: 'allow'
            acl_pattern_type: 'prefixed'
          - name: topic_test-
            acl_resource_type: 'topic'
            acl_principal: 'User:user3'
            acl_operations:
              - 'describe'
              - 'write'
            acl_permission: 'allow'
            acl_pattern_type: 'prefixed'
        mark_others_as_absent: true
        api_version: "3.9.1"
        bootstrap_servers: "broker:9092"
        security_protocol: 'SASL_PLAINTEXT'
        sasl_plain_username: 'username'
        sasl_plain_password: 'password'
        sasl_mechanism: "SCRAM-SHA-256"

What happened?
When acls has two elements and it is needed to delete one of them, for example topic_test- I just remove it from variables leaving a single element - topic_. But acls for topic_test- are not deleted.
Deletion works as it should be when acls has more than one element.

What is expected?
I expect that acl for topic_test- should be deleted but it is not happens.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions