BewareMyPower commented on issue #9317: URL: https://github.com/apache/pulsar/issues/9317#issuecomment-768856896
My description before might be a little confused. The logs I showed before was from broker side with the compaction command `bin/pulsar-admin topics compact xyz-topic`. The broker itself uses an internal `ConsumerImpl` to consume messages and then do compaction. I just want you to check if your topic compaction was performed. The steps is easy: 1. Run a pulsar standalone in front end: `bin/pulsar standalone`, then you can see the output directly. 2. Open a new terminal and run a producer to send some messages to `xyz-topic`. 3. Run `bin/pulsar-admin topics compact xyz-topic`, see the output of standalone to check if the compaction was performed. As for > You can run a Java consumer to see whether it works. I just mean if you're sure that the compaction was done in broker side, you can run a Java client application (`pulsar-client` seems not to provide the option to enable `readCompacted`) to check if Java client could only read 1 message while C++ client reads all messages. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
