BewareMyPower commented on issue #9317:
URL: https://github.com/apache/pulsar/issues/9317#issuecomment-768870753
I just did another test:
1. Produce 10 messages.
2. Compact the topic.
3. Run consumer with `sub1`, only 1 message was received:
```
2021-01-28 15:53:32.400 INFO [0x1031aedc0] SampleConsumer:49 | Receive:
my-key => msg-9 from (10,9,-1,0)
```
4. Produce another 10 messages.
5. Run consumer with `sub2`, 11 messages were received:
```
2021-01-28 15:54:06.022 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-9 from (10,9,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-0 from (10,10,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-1 from (10,11,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-2 from (10,12,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-3 from (10,13,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-4 from (10,14,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-5 from (10,15,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-6 from (10,16,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-7 from (10,17,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-8 from (10,18,-1,0)
2021-01-28 15:54:06.025 INFO [0x110a19dc0] SampleConsumer:49 | Receive:
my-key => msg-9 from (10,19,-1,0)
```
I think the behavior is normal. Or did I just misunderstand?
----------------------------------------------------------------
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]