thenatog commented on PR #5989:
URL: https://github.com/apache/nifi/pull/5989#issuecomment-1105940090

   Without this fix and running **mvn clean install 
-Dspring.profiles.active=mariadb-10-2** in ./nifi/nifi-registry I see:
   
   > [ERROR] 
org.apache.nifi.registry.db.TestDatabaseMetadataService.testGetExtensionBundleVersionByBucketGroupArtifactVersion
  Time elapsed: 0 s  <<< ERROR!
   java.lang.IllegalStateException: Failed to load ApplicationContext
   Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
   Error creating bean with name 'databaseKeyService' defined in file 
[/Users/ngough/IdeaProjects/nifi-fresh/nifi-registry/nifi-registry-core/nifi-registry-framework/target/classes/org/apache/nifi/registry/db/DatabaseKeyService.class]:
 Unsatisfied dependency expressed through constructor parameter 0; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'flywayInitializer' defined in class path resource 
[org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]:
 Invocation of init method failed; nested exception is 
org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: 
Migrations have failed validation
   Detected failed migration to version 2 (Initial). Please remove any 
half-completed changes then run repair to fix the schema history.
   Need more flexibility with validation rules? Learn more: 
https://rd.gt/3AbJUZE
   Caused by: org.springframework.beans.factory.BeanCreationException: 
   Error creating bean with name 'flywayInitializer' defined in class path 
resource 
[org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]:
 Invocation of init method failed; nested exception is 
org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: 
Migrations have failed validation
   Detected failed migration to version 2 (Initial). Please remove any 
half-completed changes then run repair to fix the schema history.
   Need more flexibility with validation rules? Learn more: 
https://rd.gt/3AbJUZE
   Caused by: org.flywaydb.core.api.exception.FlywayValidateException: 
   Validate failed: Migrations have failed validation
   Detected failed migration to version 2 (Initial). Please remove any 
half-completed changes then run repair to fix the schema history.
   Need more flexibility with validation rules? Learn more: 
https://rd.gt/3AbJUZE
   
   and with this PR it looks all fixed:
   
   >[INFO] 
------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  03:59 min
   
   +1 will merge.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to