This message was deleted.
# general
s
This message was deleted.
n
cc @Penghui
s
how do you cache the pulsar consumer? was the consumer closed when it is evicted out of the cache?
c
I set a very large timeout to prevent cache eviction to exclude this possibility. I don’t think the consumer is closed.
Is there any config I can set in the broker side or client side to avoid running into this issue? Ideally we don't need to check whether reader or consumer is connected before seeking.
s
If you don't close the consumer proactively, I don't expect the consumer will disconnect itself unless there are some recent changes that I am not aware of. @Penghui thoughts?
p
@sijieg It looks like only the seek method follows a different way. We should add a backoff policy here instead of throwing the above exception to the end user. cc @Tboy could you please help to make a fix?
internalGetLastMessageIdAsync
can be an example for adding the backoff.
👌 1
t
Push a improvement for this : https://github.com/apache/pulsar/pull/20963
c
Before the fix is merged, is there any config I can set to mitigate this issue? For example, a broker config that make the connection sticky? @Penghui