Search before reporting
Motivation
In Pulsar, there seems to be multiple code locations at least in the replicator implementation where there's a check whether the cursor has a backlog. The condition in some cases is cursor.getNumberOfEntriesInBacklog(true) > 0.
Solution
Instead of calculating the backlog count, it would be useful to have a simple check whether there's any backlog.
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
Search before reporting
Motivation
In Pulsar, there seems to be multiple code locations at least in the replicator implementation where there's a check whether the cursor has a backlog. The condition in some cases is
cursor.getNumberOfEntriesInBacklog(true) > 0.Solution
Instead of calculating the backlog count, it would be useful to have a simple check whether there's any backlog.
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?