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

startup check that schema matches database #37

Open
codekiln opened this issue Aug 24, 2018 · 0 comments
Open

startup check that schema matches database #37

codekiln opened this issue Aug 24, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@codekiln
Copy link
Contributor

Currently, if you transport the database from an environment with correctly configured schemas to an environment without indexes setup, it doesn't check that the schema in the database matches the schema in elasticsearch.

This task is to enhance the startup routine with a check to see if the schema of the active version doesn't exist:

curl -X GET "localhost:9200/users-4/_mapping/_doc"
{"error":{"root_cause":[{"type":"type_missing_exception","reason":"type[[_doc]] missing","index_uuid":"_na_","index":"_all"}],"type":"type_missing_exception","reason":"type[[_doc]] missing","index_uuid":"_na_","index":"_all"},"status":404}

Then, if it doesn't exist, it PUTs the schema/mapping from the database into elasticsearch.

@codekiln codekiln added the enhancement New feature or request label Aug 24, 2018
@codekiln codekiln self-assigned this Aug 24, 2018
@codekiln codekiln removed their assignment Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant