In order for the locking mechanism to work, each application instance has to use a unique client ID.
The CassandraLockConfig.withClientId() method is potentially misleading - if a client application uses a static value for this, instead of a UUID, then multiple instances can share the same lock and schema chaos may result.
@adamdougal and I believe this method should be either:
removed entirely, or
at least renamed to make it clear that the value provided should be a unique ID.
In order for the locking mechanism to work, each application instance has to use a unique client ID.
The
CassandraLockConfig.withClientId()
method is potentially misleading - if a client application uses a static value for this, instead of a UUID, then multiple instances can share the same lock and schema chaos may result.@adamdougal and I believe this method should be either: