-
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 is (still/again?) not able to read the latest message #14378
Comments
By default, pulsar sql won't get the last message in the topic. If you want to |
Unfortunately the issue still persists. My settings now: apache-pulsar-2.9.1/conf/broker.conf apache-pulsar-2.9.1/conf/presto/catalog/pulsar.properties Still I am not receiving all of the records in the topic. |
I tried it locally with 2.9.1, everything works fine. Can you try to produce by pulsar client cmd, |
Yes I did that now, and the results are the same: The sql lags 1 record behind, doesn't show the latest...
So I guess it has to be some configuration problem then? |
There have some logs when starting the component, you may check that configurations are applied in the logs |
if you run standalone mode, you should update |
The issue had no activity for 30 days, mark with Stale label. |
The issue had no activity for 30 days, mark with Stale label. |
Closed as stale. Feel free to open a new issue if it's still relevant for maintained versions. |
Describe the bug
Referring to bug
#3828
#4976
which was fixed in
#5822
I'm still having this exact problem.
Steps to reproduce
Running Pulsar standalone 2.9.1 on EC2.
In /home/ec2-user/apache-pulsar-2.9.1/conf/broker.conf
I set the value according to the fix:
bookkeeperExplicitLacIntervalInMills=10
Restart Pulsar.
Spawn ./pulsar sql-worker run
Event sending:
I parse a CSV file and send the records to Pulsar like this:
1.) Create Pulsar client + producer
2.) Read Csv line by line, map to PoJo, send via producer (async) + save returned CompletableFuture
3.) Make sure all CompletableFutures complete by calling completableFutures.forEach(CompletableFuture::join);
4.) Close pulsar producer & pulsar client
Afterwards when I query my topic via Pulsar SQL I'm missing the last record (sometimes I'm missing even more records than only the last record).
This is true until I parse the CSV again and send it, then the previous missing records are there in Pulsar SQL query, but ofc the new last record is missing...
Now, since parsing lines and sending them are fast operations, I also tried to add some delay between the sending of each record (Thread.sleep(20), even Thread.sleep(1000)). Even then the issue remains.
Question
Is there anything I can check to see if the
bookkeeperExplicitLacIntervalInMills=10
setting is actually in effect?
Do you need more explanation?
The text was updated successfully, but these errors were encountered: