Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: filemanager migration #519

Merged
merged 2 commits into from
Aug 26, 2024
Merged

fix: filemanager migration #519

merged 2 commits into from
Aug 26, 2024

Conversation

mmalenic
Copy link
Member

Related to #460 and #514

Issue

The migration Lambda function timed out because the migration involved index creation which can take a while.

Changes

  • Update migration function timeout to 2 minutes.
  • Fix migration Lambda function which was getting stuck in UPDATE_ROLLBACK_FAILED.
    • The fix involves checking the status of the CloudFormation stack.
    • The migration function now uses the built in CloudFormationCustomResourceRequest from the lambda-runtime.

The migration from #514 doesn't take that long (only about 30 seconds), so for now the simplest solution is to increase the Lambda timeout. Later, it might be an issue if there are any long-running index creation steps.

A better solution could involve:

  • Creating an asynchronous migration using the isComplete handler from the provider framework.
  • Running the migration script using CodeBuild.

@mmalenic mmalenic self-assigned this Aug 26, 2024
@mmalenic mmalenic added fix filemanager an issue relating to the filemanager labels Aug 26, 2024
@mmalenic mmalenic linked an issue Aug 26, 2024 that may be closed by this pull request
@mmalenic mmalenic merged commit b79c12f into main Aug 26, 2024
5 checks passed
@mmalenic mmalenic deleted the fix/filemanager-perf-queries branch August 26, 2024 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filemanager an issue relating to the filemanager fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filemanager: investigate slow queries
2 participants