patka / cassandra-migration

Schema migration library for Cassandra
MIT License
153 stars 47 forks source link

Checksum mechanism with CRC32 algorithm #21

Closed shaynechmad closed 6 years ago

shaynechmad commented 7 years ago

I added ChecksumUtil with CRC32.

If the Validation flag is on the migrate task will:

  1. fetch all scripts
  2. validate checksum for scripts with version lower than database version
  3. migrate the rest of the scripts
  4. return the number of migrated scripts

if the checksum validation failed (for one of the scripts) the migration task will quit without migrating the scripts and return -1.

patka commented 6 years ago

Hello,

thanks a lot for this contribution! Could you make this pull request for the version 3 branch? I started working on that and I think this would make a lot of sense there. Or is there any other way that I am just not seeing how I can get this request in this branch myself?

Cheers Patrick

shaynechmad commented 6 years ago

Hi Patrick,

I changed to pull request to version 3 branch.

Thanks, Shay