Hi everyone... I am using realtime ingestion. Kafk...
# troubleshooting
r
Hi everyone... I am using realtime ingestion. Kafka source has a retention period of 3 days, but the lag in Pinot said 4-5 days and was increasing. When I restated the servers the lag dropped to 2-2.5 days and reduced quite drastically and overnight dissipated. Can you pls help me debug this?
r
Can you check server logs from the time when ingestion lag was increasing for errors ?
r
Sure will do that...
Don't see any errors...
r
there are no logs for that table during that period ?
r
No do have logs... but no errors...
Screenshot 2024-12-10 at 12.44.22 PM.png
r
is there traffic in that topic ?
r
Yes... this is the log of that time... just before and after restart
r
can you also check the
offsetLag
metric ? does that also increase ?
r
Screenshot 2024-12-10 at 9.29.09 AM.png,Screenshot 2024-12-10 at 9.50.14 AM.png,Screenshot 2024-12-10 at 10.00.06 AM.png
r
interesting. logs show that consumption was going on fine.
r
Yes...
the sudden change is when I restarted the server...
r
got it. can you also share a graph for
offsetLag
?
r
FRESHNESS_LAG_MS are you talking about this metric???
r
no.
realtimeIngestionOffsetLag
realtimeIngestionDelay
maybe wrong sometimes because (from javadoc):
Copy code
* @return timestamp (epoch in milliseconds) when the row was ingested upstream
   *         Long.MIN_VALUE if not available
So if the record was inserted a few day ago in kafka and the realtime table was setup today, the metric wrongly assumes that the row was not ingested for a few days.
however I cant explain why a restart fixed the metric with this explanation.
thats why we also check offset lag
r
Yes... but the table is 2 months old and restart fixing it is weird...
r
agree
r
sure will add that...
a
we have also faced similar issue at couple of insatances, I guess server are not properly calculating by server - in our case we were checking
realtimeIngestionDelay
and even after removing table metric was showing lag, we restarted server it resolved it.