Yes, Message Queue for Apache Kafka instances of open-source version 2.2.0 or later support the compact log cleanup policy.

Yes, Message Queue for Apache Kafka instances of open-source version 2.2.0 or later support the compact log cleanup policy. To support this policy, upgrade your instance to 2.2.0 or later. For more information about how to upgrade the open-source version of an instance, see Upgrade the major version of an instance.