kernelci / kernelci/kcidb

Withdrawing Pub/Sub-triggered Cloud Function drops pending messages

Open
#361 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
26
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Google Cloud Functions can be triggered by messages coming into a Pub/Sub topic subscription. However, such subscription is automatically created when the function is deployed, and then is automatically destroyed when the function is withdrawn (deleted), thus losing all the messages pending in it.

This affects our `kcidb_spool_notifications` Cloud Function. We lose all unprocessed object updates when withdrawing it. This is especially a problem when the subscription is congested, e.g. due to the function timing out a lot, as is the case in #360.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how kcidb_spool_notifications is deployed and withdrawn, and review the related timeout context in #360. The work is done when withdrawing the function no longer loses pending object updates from its subscription.

Written by the indexing model from the issue text.

Assessment

Tech stack
google-cloud, python
Domain
backend, cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.