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

Can't create index [Validation Failed] #174

Open
mityi opened this issue Aug 9, 2021 · 1 comment
Open

Can't create index [Validation Failed] #174

mityi opened this issue Aug 9, 2021 · 1 comment

Comments

@mityi
Copy link

mityi commented Aug 9, 2021

I'm building a docker container with liquibase-mongodb and run test changelogs on empty mongodb:

Index creation was failed with the exception:

Caused by: liquibase.exception.ValidationFailedException: Validation Failed:
     4 changes have validation failures
          No columns defined for createIndex on mongodb, changelog/changelog-master.xml::1::alex
          tableName is required for createIndex on mongodb, changelog/changelog-master.xml::1::alex
          No columns defined for createIndex on mongodb, changelog/changelog-master.xml::1::alex
          tableName is required for createIndex on mongodb, changelog/changelog-master.xml::1::alex

Dockerfile:

FROM liquibase/liquibase:4.4.2
USER liquibase
ENV LIQUIBASE_CORE_VERSION 4.4.2
ENV MONGO_JAVA_DRIVER_VERSION 3.12.10
RUN wget --no-verbose -O /liquibase/lib/liquibase-mongodb-${LIQUIBASE_CORE_VERSION}.jar https://repo1.maven.org/maven2/org/liquibase/ext/liquibase-mongodb/${LIQUIBASE_CORE_VERSION}/liquibase-mongodb-${LIQUIBASE_CORE_VERSION}.jar
RUN wget --no-verbose -O /liquibase/lib/mongo-java-driver-${MONGO_JAVA_DRIVER_VERSION}.jar https://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/${MONGO_JAVA_DRIVER_VERSION}/mongo-java-driver-${MONGO_JAVA_DRIVER_VERSION}.jar
CMD ["sh", "-c", "docker-entrypoint.sh --url=${DB_URL} --username=${DB_USER} --password=${DB_PASS} --classpath=/liquibase/changelog --changeLogFile=${LIQUIBASE_MASTER_FILE} update"]

As I understand it's incorrect behavior.

Do u know any hacks or ways to fix it?

┆Issue is synchronized with this Jira Bug by Unito

@mityi mityi changed the title Can't create index [4.4.2] Can't create index [Validation Failed] Aug 9, 2021
@vshalgarg
Copy link

@AlexanderSashchenko ,
Could you please look into this.. I am also facing the same issue

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

No branches or pull requests

2 participants