coderzc commented on code in PR #21917:
URL: https://github.com/apache/pulsar/pull/21917#discussion_r1458332792
##########
pulsar-broker/src/test/java/org/apache/pulsar/compaction/CompactorTest.java:
##########
@@ -177,6 +184,54 @@ public void testCompaction() throws Exception {
compactAndVerify(topic, expected, true);
}
+ @Test
+ public void testAllCompactedOut() throws Exception {
+ String topicName =
"persistent://my-property/use/my-ns/testAllCompactedOut";
+ // set retain null key to true
+ TwoPhaseCompactor compactor = (TwoPhaseCompactor)
((PulsarCompactionServiceFactory)
+ pulsar.getCompactionServiceFactory()).getCompactor();
+ compactor.setTopicCompactionRetainNullKey(true);
+
Review Comment:
We can change config `topicCompactionRetainNullKey=true` and restart broker.
--
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]