coderzc commented on PR #21065:
URL: https://github.com/apache/pulsar/pull/21065#issuecomment-1695226358

   
`org.apache.pulsar.compaction.StrategicCompactionTest.testCompactCompressedBatching`
 always failed after applying this change. I noticed the 
StrategicTwoPhaseCompactor may write messages from the same batch into 
different entries, which will result in skipping some messages when reading 
compacted entries. Is that so?
   Refer to: 
https://github.com/apache/pulsar/blob/d099ac4fa2f217b9c5f0a5e660c83048e829c5d7/pulsar-broker/src/main/java/org/apache/pulsar/compaction/CompactedTopicImpl.java#L129-L135
 
   
   
https://github.com/apache/pulsar/blob/d099ac4fa2f217b9c5f0a5e660c83048e829c5d7/pulsar-broker/src/main/java/org/apache/pulsar/compaction/StrategicTwoPhaseCompactor.java#L444-L455
   /cc @heesung-sn @Demogorgon314 


-- 
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]

Reply via email to