Slackbot
01/19/2024, 4:23 AMAlexander Preuß
01/19/2024, 8:12 AMAlexander Preuß
01/19/2024, 8:13 AMsindhushree
01/19/2024, 9:50 AMuserProducer.newMessage().keyBytes(("key"+i).getBytes(StandardCharsets.UTF_8))
.value(msg1.getBytes(StandardCharsets.UTF_8)).sendAsync();
is the example produce and compaction is triggered as below using pulsar admin
pulsarAdmin.topics().triggerCompaction(topic);Alexander Preuß
01/19/2024, 10:11 AMAlexander Preuß
01/19/2024, 10:12 AMPenghui
01/19/2024, 11:16 AMsindhushree
01/29/2024, 6:37 AMPenghui
01/29/2024, 7:02 AMsindhushree
01/29/2024, 10:06 AMuserConsumer = client.newConsumer()
.topic(topic)
.subscriptionName("test")
.subscriptionType(SubscriptionType.Exclusive)
//.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
.subscriptionMode(SubscriptionMode.Durable)
.readCompacted(true)
.subscribe();
its exclusive and i had subscription position set to earliestPenghui
01/29/2024, 10:45 AMsindhushree
01/29/2024, 11:52 AMPenghui
01/29/2024, 11:54 AMPenghui
01/29/2024, 11:54 AMsindhushree
01/29/2024, 11:55 AMCong Zhao
01/29/2024, 11:59 AMCong Zhao
01/29/2024, 12:03 PMwhen we read its its returning k1 value1 ,k2 value2 and k1 value1 ..
but understanding was it would only return k2 value2 since empty payload it would remove k1 .is the understanding correct ?Not sure if the compaction task has been completed before reading topic.
sindhushree
01/29/2024, 12:29 PMsindhushree
01/29/2024, 12:29 PMsindhushree
01/29/2024, 12:31 PMCong Zhao
01/29/2024, 12:47 PMsindhushree
01/29/2024, 3:36 PMPenghui
01/29/2024, 9:51 PMsindhushree
01/30/2024, 1:20 PMsindhushree
01/30/2024, 1:20 PMPenghui
01/30/2024, 10:48 PM