sky-uk / cqlmigrate

Cassandra schema migration library
BSD 3-Clause "New" or "Revised" License
47 stars 29 forks source link

How can we increase the wait time in case of lock scenario #63

Closed cgoel123 closed 7 years ago

cgoel123 commented 7 years ago

There is an internal locking mechanism which enables multiple application make changes to the same database on one on one basis so that they do not step on each others feet. What is the waiting timeout duration currently set in the tool ? How can we increase this duration ?

adamdougal commented 7 years ago

@cgoel123 It defaults to 1 minute: https://github.com/sky-uk/cqlmigrate/blob/master/src/main/java/uk/sky/cqlmigrate/LockConfig.java#L70

Please see the README for how to override this value: https://github.com/sky-uk/cqlmigrate#library-usage