You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pulsar SQL can not query the latest ingested event in a topic , but Pulsar Consumer/Read always can. #4976
Describe the bug
Pulsar SQL can not query the latest ingested event in a topic , but Pulsar Consumer/Read always can.
the testing Pulsar version is 2.4.0
from the two screenshots below, we can see the latest event is always missed in Palsar SQL. but Pulsar reader client can fetch the latest one correctly.
I am new to Pulsar but very interested in Pulsar. don't know this is a bug, or just a kind interesting feature which needs some hidden config I don't know yet?
Screenshots
this is the testing code and screenshot of Pulsar Reader:
this is the testing query SQL and screenshot in Pulsar SQL CLI:
looking at the screenshots above, we can find Pulsar Reader returns 5 records with the latest ingested event, but Pulsar SQL only returns 4 records without the latest ingested event. always missing one latest ingested event from Pulsar SQL while new event comes into Pulsar Topic
@frank-dkvan this is a known issue of #3828. because Pulsar doesn't flush LAC so when Presto SQL reads data from bookkeeper bypassing broker, it will miss the latest message because the advanced LAC is not flushed back.
@frank-dkvan this is a known issue of #3828. because Pulsar doesn't flush LAC so when Presto SQL reads data from bookkeeper bypassing broker, it will miss the latest message because the advanced LAC is not flushed back.
The fix is waiting for BK 4.10 release.
@sijie I tested and found this bug hasn't yet been fixed in latest 2.5.0 snapshot with BK 4.10 release.
will this bug get fixed in 2.5.0 official release? or it there any workaround solution/configuration to solve that?
@frank-dkvan I think it requires a change at Pulsar side. since we are cutting 2.5.0 next week, I don't think we are able to include this in time. We can do this for 2.5.1 or 2.6.0.
you might be able to work around with 4.10 with a bk client configuraiton. @codelipenghui should be able to help you with this.
thanks @sijie
Hi @codelipenghui wld you pls help with this: providing more details on bk client configuration at pulsar side...sample code if any would be nice..thanks
@sijie I think we need to use explicitLacInterval, this is the name in Bookkeeper client configuration. The bookkeeperExplicitLacIntervalInMills is named in broker side.
Activity
frank-dkvan commentedon Aug 19, 2019
looking at the screenshots above, we can find Pulsar Reader returns 5 records with the latest ingested event, but Pulsar SQL only returns 4 records without the latest ingested event. always missing one latest ingested event from Pulsar SQL while new event comes into Pulsar Topic
sijie commentedon Aug 21, 2019
@frank-dkvan this is a known issue of #3828. because Pulsar doesn't flush LAC so when Presto SQL reads data from bookkeeper bypassing broker, it will miss the latest message because the advanced LAC is not flushed back.
The fix is waiting for BK 4.10 release.
frank-dkvan commentedon Aug 21, 2019
@sijie got it! thanks
frank-dkvan commentedon Dec 8, 2019
@sijie I tested and found this bug hasn't yet been fixed in latest 2.5.0 snapshot with BK 4.10 release.
will this bug get fixed in 2.5.0 official release? or it there any workaround solution/configuration to solve that?
sijie commentedon Dec 8, 2019
@frank-dkvan I think it requires a change at Pulsar side. since we are cutting 2.5.0 next week, I don't think we are able to include this in time. We can do this for 2.5.1 or 2.6.0.
you might be able to work around with 4.10 with a bk client configuraiton. @codelipenghui should be able to help you with this.
frank-dkvan commentedon Dec 8, 2019
thanks @sijie
Hi @codelipenghui wld you pls help with this: providing more details on bk client configuration at pulsar side...sample code if any would be nice..thanks
codelipenghui commentedon Dec 9, 2019
@frank-dkvan @sijie I have create a new pull request #5822 for expose the config in broker.conf.
sijie commentedon Dec 9, 2019
@frank-dkvan
I think you can add
bookkeeperExplicitLacIntervalInMills=5in the JVM system properties when starting the broker.codelipenghui commentedon Dec 9, 2019
@sijie I think we need to use
explicitLacInterval, this is the name in Bookkeeper client configuration. ThebookkeeperExplicitLacIntervalInMillsis named in broker side.sijie commentedon Dec 9, 2019
You are right!
frank-dkvan commentedon Dec 16, 2019
Hi @codelipenghui "5" means there would be 5-ms delay before we can see the latest message in Pulsar SQL? Am I understanding correctly?
frank-dkvan commentedon Dec 16, 2019
Thanks @codelipenghui
Expose bookkeeper expose explicit lac in broker.conf (#5822)
codelipenghui commentedon Feb 10, 2020
close via #5822
Expose bookkeeper expose explicit lac in broker.conf (apache#5822)
Expose bookkeeper expose explicit lac in broker.conf (apache#5822)
Expose bookkeeper expose explicit lac in broker.conf (#5822)
Expose bookkeeper expose explicit lac in broker.conf (apache#5822)
Expose bookkeeper expose explicit lac in broker.conf (apache#5822)