Issue: Frequent Cache set failed as constraint failed and The cached lock does not match ours errors related to pipelines which use the gsuite_activities connectors. Most notably those where operation is in drive,calendar,token. This results in no new logs being acquired - likely due to the cache never having been updated.
Context:
- Deployed containerized via AWS ECS
- Configuration files stores in AWS SSM Parameter Store
- Shared cache/pointer using AWS DynamoDB
- Configuration files exist with
gsuite_activities as the connector and each one of the possible operation values from the list of available options
- This issue appears to have occurred when we implemented autoscaling and added several config objects
EDIT: Rather than assuming this is a cache issue I would like to note that based on logs, we can see that:
- We have several logs indicating pagination is occurring (
Using pageToken as a cursor...)
- This is followed by a log indicating pagination has ended (
Got activities from the GSuite API)
- There may be some issue in the
save method, because the connector exits after this line and the logs do not make it to S3.
- This has been noted with GSuite operations:
drive, gcp, token, calendar, chrome, context_aware_access.
- This began occurring upon introducing several new configuration objects for GSuite activities of various
operation types
- I can find instances of this chain of events occurring without any error logs referring to
The cached lock does not match ours.
Issue: Frequent
Cache set failed as constraint failedandThe cached lock does not match ourserrors related to pipelines which use thegsuite_activitiesconnectors. Most notably those whereoperationis indrive,calendar,token. This results in no new logs being acquired - likely due to the cache never having been updated.Context:
gsuite_activitiesas the connector and each one of the possibleoperationvalues from the list of available optionsEDIT: Rather than assuming this is a cache issue I would like to note that based on logs, we can see that:
Using pageToken as a cursor...)Got activities from the GSuite API)savemethod, because the connector exits after this line and the logs do not make it to S3.drive,gcp,token,calendar,chrome,context_aware_access.operationtypesThe cached lock does not match ours.