-
Notifications
You must be signed in to change notification settings - Fork 3k
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(standalone-consumers): Exclude Solr from spring boot application config & make them run on M1 #5827
fix(standalone-consumers): Exclude Solr from spring boot application config & make them run on M1 #5827
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minor comments
@@ -21,6 +21,7 @@ pip install -r requirements.txt | |||
|
|||
echo "DATAHUB_VERSION = $DATAHUB_VERSION" | |||
DATAHUB_TELEMETRY_ENABLED=false datahub docker quickstart --quickstart-compose-file ../docker/quickstart/docker-compose-without-neo4j.quickstart.yml --dump-logs-on-failure | |||
#DATAHUB_TELEMETRY_ENABLED=false datahub docker quickstart --standalone_consumers --build-locally --dump-logs-on-failure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm personally okay with leaving this in as a way to easily run it locally. Might even want to create a separate file for this and have it run as a part of releases at some point or at least run some of the short tests against an instance with standalone consumers. We're starting to pretty commonly that people are wanting this option to scale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this to change after this PR is merged so that we start using standalone consumers during our smoke tests. As Ryan said, we should have this deploy config as part of our CI.
- DATAHUB_GMS_HOST=datahub-gms | ||
- DATAHUB_GMS_PORT=8080 | ||
- MAE_CONSUMER_ENABLED=true | ||
- PE_CONSUMER_ENABLED=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this variable not have a default anywhere? Tried looking but couldn't find so I am assuming it is null
? Do you know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, this comes from mae-consumer docker.env
file, possibly legacy? @jjoyce0510 do you know?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It defaults to false because of its usage. Instead of using Spring style properties it uses System.getenv with a "true".equals(prop). This should be refactored at some point since this won't even handle case sensitivity.
Do we have a flaky test? |
Hmm I thought Harshal was fixing this one, but yeah it was flaking |
Okay yeah those changes got merged in, @hsheth2 looks like that test is still flaking :( |
@RyanHolstien yep the same test is flaking, but seems like it's flaking in a different spot now. Added an additional log here #5842 to debug more |
…config & make them run on M1 (datahub-project#5827) * fix(standalone-consumers) Removes Solr from spring boot application config * Adds standalone consumer option to datahub quickstart cli * Rename files * Make dockerize platform agnostic & change docker compose utility to work with M1 * Fix MAE/MCE dockerfiles for arm & make smoke tests use standalone consumers * Fix identation * Use master code * Adds ARM image publishing for consumers * Fix linter * Fix lint
…config & make them run on M1 (datahub-project#5827) * fix(standalone-consumers) Removes Solr from spring boot application config * Adds standalone consumer option to datahub quickstart cli * Rename files * Make dockerize platform agnostic & change docker compose utility to work with M1 * Fix MAE/MCE dockerfiles for arm & make smoke tests use standalone consumers * Fix identation * Use master code * Adds ARM image publishing for consumers * Fix linter * Fix lint
Pull request #5827 introduced a regression by removing coreutils from the mae-consumer Dockerfile (coreutils was added in #3723). This broke the base64 call in the startup script s.th. the Elasticsearch auth header will not be correctly set when username and password are provided. To make sure that the startup script fails on these errors in the future, set "-euo pipefail" which lets the bash script fail on errors and unset variables. Also refactor the startup script to make it more stable and readable. Co-authored-by: Pedro Silva <[email protected]>
This PR modifies a few things related to MAE/MCE consumers, namely:
datahub docker quickstart
to deploy standalone consumers in preparation for smoke tests to run with standalone consumers.Checklist