-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulsar SQL can not query the latest ingested event in a topic , but Pulsar Consumer/Read always can. #4976
Comments
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. The fix is waiting for BK 4.10 release. |
@sijie got it! thanks |
@sijie I tested and found this bug hasn't yet been fixed in latest 2.5.0 snapshot with BK 4.10 release. |
@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 |
@frank-dkvan @sijie I have create a new pull request #5822 for expose the config in broker.conf. |
I think you can add |
@sijie I think we need to use |
You are right! |
Hi @codelipenghui "5" means there would be 5-ms delay before we can see the latest message in Pulsar SQL? Am I understanding correctly? |
Thanks @codelipenghui |
close via #5822 |
### Motivation Expose bookkeeper expose explicit lac configuration in broker.conf It's related to apache#3828 apache#4976, some Pulsar SQL users need to enable the explicitLacInterval, so that they can get the last message in Pulsar SQL.
### Motivation Expose bookkeeper expose explicit lac configuration in broker.conf It's related to apache#3828 apache#4976, some Pulsar SQL users need to enable the explicitLacInterval, so that they can get the last message in Pulsar SQL. (cherry picked from commit 4fd17d4)
### Motivation Expose bookkeeper expose explicit lac configuration in broker.conf It's related to apache#3828 apache#4976, some Pulsar SQL users need to enable the explicitLacInterval, so that they can get the last message in Pulsar SQL. (cherry picked from commit 4fd17d4)
### Motivation Expose bookkeeper expose explicit lac configuration in broker.conf It's related to apache#3828 apache#4976, some Pulsar SQL users need to enable the explicitLacInterval, so that they can get the last message in Pulsar SQL.
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:
The text was updated successfully, but these errors were encountered: