Class ValidatingVisitorUtil


  • public class ValidatingVisitorUtil
    extends Object
    Util class to offload methods that are used by ValidatingVisitor class and may make it more complex than it should be
    • Method Detail

      • validateMongoDbExtensionIssue

        public static boolean validateMongoDbExtensionIssue​(ChangeSet changeSet,
                                                            RanChangeSet ranChangeSet,
                                                            DatabaseChangeLog databaseChangeLog,
                                                            Database database)
        MongoDB's extension was incorrectly messing with CreateIndex and DropIndex checksums when the extension was added to the lib folder but a database other than mongodb was used. This method checks: * is it a CreateIndex or DropIndex change? * are we not using mongo? * do we have mongo extension loaded? * If I use CreateIndex or DropIndex from mongo extension, does the checksum matches? If everything matches than we fix the checksum on the database and say it's fine to continue.