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

Liquibase throws an error when running on Azure (Cosmos DB API for MongoDB) #235

Open
jjpinto opened this issue Feb 19, 2022 · 5 comments
Open

Comments

@jjpinto
Copy link

jjpinto commented Feb 19, 2022

A show stopper has been found when running Liquibase on Azure using Cosmos DB API for MongoDB. The extension works properly local dev environment but when we run on Azure it does not go well.

More details: 
https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb/feature-support-36#administration-commands

Error found: com.mongodb.MongoCommandException: Command failed with error 115 (CommandNotSupported): 'Command collMod not supported.' on server xxx.mongo.cosmos.azure.com:10255. The full response is {"ok": 0.0, "errmsg": "Command collMod not supported.", "code": 115, "codeName": "CommandNotSupported"}

How can we bypass this problem? It would be nice to have a Liquibase extension to use another way to implement the migration.

@Nico-Chl
Copy link

Nico-Chl commented Sep 14, 2022

We are facing the same issue. Did you find any workaround ?

@jjpinto
Copy link
Author

jjpinto commented Sep 14, 2022

No @Nico-Chl , we had to stop with that for the moment until a fix was provided for colMod (Administration commands)

@Nico-Chl
Copy link

Thanks for your quick reply ! Let's wait then. In our case we are investigating other options like mongock.

@ivan-zaitsev
Copy link

I think it can be closed. It is possible to disable validation using liquibase.mongodb.supportsValidator=false in liquibase.properties

@Vinss26
Copy link

Vinss26 commented Jan 26, 2024

Thanks @ivan-zaitsev
You've saved me several days :)

I confirm this issue can be close, the liquibase.mongodb.supportsValidator=false works fine with cosmosDB

Note : the cli parameter is --mongodb-supports-validator=false

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

4 participants