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

CLA Assistant fails to start when used with AWS DocumentDB #1026

Open
dyladan opened this issue Oct 4, 2023 · 2 comments · May be fixed by #1030
Open

CLA Assistant fails to start when used with AWS DocumentDB #1026

dyladan opened this issue Oct 4, 2023 · 2 comments · May be fixed by #1030

Comments

@dyladan
Copy link

dyladan commented Oct 4, 2023

Recently, my team tried to update our instance of CLA Assistant. We are hosting it in a docker container in ECS backed by a DocumentDB instance. The CLA document src/server/src/documents/cla.js indexes all fields with a wildcard index, which causes a server error from AWS DocumentDB, which does not support text indexes. This causes an unhandled promise rejection at application startup. In our previous version, this caused an application log but did not otherwise cause problems. #823 updated the node version used in the Dockerfile to 16 which causes unhandled promise rejections to crash the application.

I am asking for one of the following:

  1. Add an option to disable creating the index
  2. Handle the promise rejection from index creation so as not to crash the application
  3. Create a targeted index instead of a wildcard index https://www.mongodb.com/docs/manual/core/indexes/index-types/index-wildcard/

I am happy to submit a PR for any of these ideas if they would be accepted.

@Luckymhe
Copy link

Luckymhe commented Oct 14, 2023

If PR failed the CLA assistant what will Happen?

@dyladan dyladan linked a pull request Nov 2, 2023 that will close this issue
@dyladan
Copy link
Author

dyladan commented Nov 2, 2023

If PR failed the CLA assistant what will Happen?

This has nothing to do with the CLA check its about self hosting the assistant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants