Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Changeset checksum validation failed with same md5sum value

$
0
0
Hi Steve, 

I tried to print the checksum values current Changeset and old Changeset ( RanChangeset) for the changeset which are failed during the validation.

The RanChangeSet checksum value is different than what is existing in the detabasechangelog table md5sum value.
What could be the reason for printing the different value from what exists in database.

  validationFailedException.getInvalidMD5Sums().forEach(changeSet -> {
                         try {
                             finalDatabase.getRanChangeSetList().forEach((ranChangeSet -> {
                                     if(ranChangeSet.getId().equals(changeSet.getId())){
                                         logger.error("db changeset id:: " +ranChangeSet.getId() 
                                             + " checksum:: "+ranChangeSet.getLastCheckSum() + "\n current changeset id:: " + changeSet.getId()  +" current checksum:: "+ changeSet.generateCheckSum());
                                     }
                                 })
                             );

                         } catch (DatabaseException e1) {
                             e1.printStackTrace();
                         }
                     });


Thanks
Sravan A

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>