michalcukierman commented on issue #23299:
URL: https://github.com/apache/pulsar/issues/23299#issuecomment-2351010474
Added Draft PR to reproduce the issue with a code:
```java
@Test
public void testCompactionOfCompressedMessagesWithProperties() throws
Exception {
String topicName = BrokerTestUtil.newUniqueName(
"persistent://my-property/use/my-ns/testCompactionOfCompressedMessagesWithProperties");
@Cleanup
Producer<String> producer = pulsarClient.newProducer(Schema.STRING)
.compressionType(CompressionType.LZ4)
.topic(topicName)
.batchingMaxMessages(2)
.create();
producer.newMessage().key("K1").value("V1").sendAsync();
producer.newMessage().key("K2").value("V2").properties(Map.of("p1",
new String(new byte[100]))).sendAsync();
admin.topics().triggerCompaction(topicName);
Awaitility.await().until(() ->
admin.topics().compactionStatus(topicName).status == Status.SUCCESS);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]