Skip to content

Bug: Concurrency/Cache issues when utilizing multiple GSuite connectors #86

Description

@brianbeklaviyo

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:

  1. We have several logs indicating pagination is occurring (Using pageToken as a cursor...)
  2. This is followed by a log indicating pagination has ended (Got activities from the GSuite API)
  3. 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.
  4. This has been noted with GSuite operations: drive, gcp, token, calendar, chrome, context_aware_access.
  5. This began occurring upon introducing several new configuration objects for GSuite activities of various operation types
  6. I can find instances of this chain of events occurring without any error logs referring to The cached lock does not match ours.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions