Git Product home page Git Product logo

Comments (12)

patka avatar patka commented on September 19, 2024 1

Great! So I will see that I get a release out in the next couple of days.

from cassandra-migration.

patka avatar patka commented on September 19, 2024

Hi,

Yes there is. I am currently just thinking how to make the transition smooth for library users as the drivers API is unfortunately not backward compatible.

Cheers
Patrick

from cassandra-migration.

albertpastrana avatar albertpastrana commented on September 19, 2024

Hi @patka, what's the status of this issue? Do you need any help? We'd like to upgrade the driver and are blocked by the library, so will be more than happy to give you a hand!
If it's of any help, as a library user I'd be fine if you just generate a new major version for your library?

from cassandra-migration.

patka avatar patka commented on September 19, 2024

Hi Albert,

hm, actually I replied to you yesterday but obviously the mail did not make it to Github. Anyway, on my commute home yesterday I was able to integrate the new version into the library. What is left are the integration tests and some testing. The integration tests are a little bit more tricky as cassandra-unit does also not yet support the driver in version 4 but Maven of course resolves to the latest version of the library. So, I have to find a way to test this. Worst case scenario is that for the time being the tests only work when there is a Cassandra node running on localhost or something like this. I never wanted this scenario and I hope that there will be a better solution, either now or soon.

As for the timeline. My plan is to get this done on the weekend. I will most likely then create a branch v2_4 from which I can create a release v2.2.1_v4. Like this there is the possibility to create a new release of the library with version 3 of the driver, in case of a bug, until Datastax finally deprecates the version 3.

So, unless there is something unforeseen you should get something by next week what you can use to test the migration.

Cheers
Patrick

from cassandra-migration.

patka avatar patka commented on September 19, 2024

Hi,

there is a new branch master_v4 that contains an updated version with the changes to use the driver v4. As the documentation is not yet updated here are some things to consider:

  • It would be best to provide a dedicated CqlSession to the database class as it make use of the "USE keyspace" command in order to be backward compatible with the migration scripts unless we are already on the configured keyspace.
  • It would therefore not yet use the spring boot starter. I have to investigate first if it is possible to use named beans in order to have a dedicated one here.
  • The tests currently only work if there is a node running on localhost as cassandra-unit is not yet available for driver version 4.

It would be great if you could give it a try and let me know if you have some issues. Otherwise I would create a release soon.

Cheers
Patrick

from cassandra-migration.

albertpastrana avatar albertpastrana commented on September 19, 2024

Hi @patka, I've been playing a bit with it and it looks like this branch working for me, thanks a lot!

from cassandra-migration.

patka avatar patka commented on September 19, 2024

I just pushed the changes required for the Spring Boot Starter. If my kids don't cross my plans I will release version 2.2.1_v4 this evening.

from cassandra-migration.

albertpastrana avatar albertpastrana commented on September 19, 2024

That's excellent news, thanks a lot @patka!

from cassandra-migration.

patka avatar patka commented on September 19, 2024

I just released the library. Normally it takes a couple of hours until it is available in the Maven repos. Let me know if there are any issues.
Glad I could help :)

from cassandra-migration.

legart avatar legart commented on September 19, 2024

Any plans on a _v4 version of 2.3?

from cassandra-migration.

patka avatar patka commented on September 19, 2024

Hi,

yes, as a matter of fact I have :)

But as most other people I am currently working from home with two kids to take care of. I have it on my agenda and want to do it but I can currently not provide any estimate.

from cassandra-migration.

patka avatar patka commented on September 19, 2024

I released v2.3.0_v4. Give it some time to propagate through the maven repos.

from cassandra-migration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.