-
Notifications
You must be signed in to change notification settings - Fork 34
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 fails when username/password are enabled. #110
Comments
➤ Surya Aki commented: Related issue |
➤ Surya Aki commented: Mario Champion I am not sure how cassandra works, that’s where we should start investigating this issue.. |
➤ Nehal Dixit commented: please ping me when this is ready for UAT cc Steven Massaro Erzsebet Carmean Surya Aki |
While I was making the fix for this ticket, I discovered that there was an additional issue with the way that the Cassandra extension handled the This issue presents itself as a stack trace in the console output from running
|
Context
Liquibase with Cassandra Extension seems to work fine unless user/password are enabled.
It should work with user/password enabled.
Steps to reproduce
changelog.sql
:Actual results in the console output
Changes are showing in the database as expected including tracking tables with the proper entries.
It appears that Liquibase is unable to query the tracking table correctly and considers the changes as "undeployed".
The command hangs indefinitely.
It appears that after the first update the DATBASECHANGELOGLOCK table was left locked.
Expected Result
Test Requirements (Liquibase Internal QA)
SETUP
Download the latest Liquibase-Cassandra extension
Download Cassandra Simba JDBC Driver
Pull cassandra docker image : https://hub.docker.com/_/cassandra
Run cassandra:
p9042:9042d cassandra:latestVerify Cassandra status is healthy
CD /bin
Run nodetool/status
nodetool status
Sample Output:
Connect to Cassandra Using csqlsh and Create keySpace
CREATE KEYSPACE liquibase WITH REPLICATION = {‘class’ : ‘SimpleStrategy’, ‘replication_factor’ : 1 }
cd /opt/cassandra/bin
cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.10 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh> CREATE KEYSPACE liquibase WITH REPLICATION = {‘class’ : ‘SimpleStrategy’, ‘replication_factor’ : 1 };
cd /opt/cassandra/bin
cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
cqlsh> USE liquibase;
csqlsh> DESCRIBE TABLES;
cd /opt/cassandra/bin
cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
cqlsh> USE liquibase;
csqlsh> DESCRIBE TABLE DATABASECHANGELOG;
cd /opt/cassandra/bin
cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
cqlsh> USE liquibase;
csqlsh> DESCRIBE TABLE DATABASECHANGELOGLOCK;
The text was updated successfully, but these errors were encountered: