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
In the past couple of months, there has been an intermittent issue where occasional syncs to the google-ads source would get stuck and be unable to make progress. We have had a couple different OC issues get filed in response and during those investigations, the platform team investigated and identified that the worker pods appeared to be in a healthy state. The connectors teams have done some cursory investigations through the code to see if there was any places where it may be getting stuck. This didn't yield any obvious results. The immediate mitigation is to restart the sync for customers, but thinking longer term we should be trying to get a better sense for what might be happening in the connector and why it is no longer emitting records to the destination.
Although not an immediate fix for the problem, we should start adding log statements around various parts of the google-ads code to see where things might not behave as we expect. Right now without any logs visible during a stuck connector sync, there is very little we can do to investigate the root cause. On the latest issue, the stream that was not making progress was the ad_group_ads and user_location_report
A few initial places that might be worth adding some logging of dates or non-PII data:
streams.py.IncrementalGoogleAdsStream.read_records() - the infinite while loop until we get an exception seems a little supicious
streams.py.IncrementalGoogleAdsStream.stream_slices() - might be worth seeing what slices we're iterating over
streams.py.IncrementalGoogleAdsStream.chunk_date_range() - the logic for how we make slices
Once we have the logs in place, if this comes up again we should hopefully be able to figure out what is causing the connector to get stuck or demonstrate that the connector is functioning as expected and it could be another issue.
The text was updated successfully, but these errors were encountered:
@sherifnada I could not reproduce this issue locally. Is there a way a GL engineer (i.e. me) can perform this check in cloud?
cc @girarda as current OC eng
Tell us about the problem you're trying to solve
In the past couple of months, there has been an intermittent issue where occasional syncs to the
google-ads
source would get stuck and be unable to make progress. We have had a couple different OC issues get filed in response and during those investigations, the platform team investigated and identified that the worker pods appeared to be in a healthy state. The connectors teams have done some cursory investigations through the code to see if there was any places where it may be getting stuck. This didn't yield any obvious results. The immediate mitigation is to restart the sync for customers, but thinking longer term we should be trying to get a better sense for what might be happening in the connector and why it is no longer emitting records to the destination.OC:
974
1148
Describe the solution you’d like
Although not an immediate fix for the problem, we should start adding log statements around various parts of the
google-ads
code to see where things might not behave as we expect. Right now without any logs visible during a stuck connector sync, there is very little we can do to investigate the root cause. On the latest issue, the stream that was not making progress was thead_group_ads
anduser_location_report
A few initial places that might be worth adding some logging of dates or non-PII data:
streams.py.IncrementalGoogleAdsStream.read_records()
- the infinite while loop until we get an exception seems a little supiciousstreams.py.IncrementalGoogleAdsStream.stream_slices()
- might be worth seeing what slices we're iterating overstreams.py.IncrementalGoogleAdsStream.chunk_date_range()
- the logic for how we make slicesOnce we have the logs in place, if this comes up again we should hopefully be able to figure out what is causing the connector to get stuck or demonstrate that the connector is functioning as expected and it could be another issue.
The text was updated successfully, but these errors were encountered: