coderzc commented on code in PR #20718:
URL: https://github.com/apache/pulsar/pull/20718#discussion_r1255492211
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java:
##########
@@ -3167,7 +3188,7 @@ public synchronized void triggerCompaction()
currentCompaction =
brokerService.pulsar().getStrategicCompactor()
.compact(topic, strategicCompactionMap.get(topic));
} else {
- currentCompaction =
brokerService.pulsar().getCompactor().compact(topic);
+ currentCompaction =
topicCompactionService.compact().thenApply(x -> null);
Review Comment:
Because the currentCompaction type is `CompletableFuture<Long>`, however
topicCompactionService.compact() return `CompletableFuture<Void>` type.
--
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]