bcgov / bcgov/bcparks-ar-api

Exporter lambdas can loop indefinitely if an error is encountered in a nested lambda

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Some strange behaviour is occuring in the spreadsheet exporter lambdas when running into errors.

1. `export-get` is invoked, and within itself, invokes `export-invokable`.
2. `export-invokable` errors out - in the situation that this behaviour was discovered, it was a syntax error, but the behaviour may also occur if `export-invokable` is interrupted.
3. `export-get` loops indefinitely, awaiting a response from `export-invokable` - however, `export-invokable` doesn't appear to be called more than once.

`export-get` appears to have a 15 minute timeout, since exporting the spreadsheet can take time, but we want to ensure it isnt looping itself if it `export-invokable` is interrupted. Looping can rack up high AWS bills very quickly.

This issue should be investigated and a more robust error handling method should be implemented.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the spreadsheet exporter entry points named `export-get` and `export-invokable`, then reproduce the nested-lambda failure using the reported syntax-error or interruption scenario. Done means an error from `export-invokable` is handled without an indefinite wait or repeated billing-causing loop, with coverage for the failure path.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript, nodejs
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.