-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug
Description
Describe the bug
Expiry based on ttl setting is not working as expected. If a topic has a ledge which has no entry, like
"ledgers" : [ {
"ledgerId" : 330530,
"entries" : 8576709,
"size" : 1020628371,
"offloaded" : false
}, {
"ledgerId" : 330569,
"entries" : 8285012,
"size" : 985916428,
"offloaded" : false
}, {
"ledgerId" : 330610,
"entries" : 5634479,
"size" : 670503001,
"offloaded" : false
}, {
"ledgerId" : 1702011,
"entries" : 0,
"size" : 0,
"offloaded" : false
} ]
expiry will move the MarkDeletePosition on entry each time
The cause is that when check the expiry, broker will check all message after markdeleteposition, and when getPositionAfterN it may out of range of LAC
To Reproduce
Steps to reproduce the behavior:
- Create a topic and a subscription on this topic
- Producer some messages and subscribe part of these messages
- Unload this topic (make sure this topic has a newest ledger which does not contain any entry)
- See the expiry
Expected behavior
TTL should be expected when checking message expiry.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug
