Skip to content

Default for spring.flway.execute-in-transaction is not aligned with Flyway's default#35447

Closed
TheHound wants to merge 1 commit intospring-projects:mainfrom
TheHound:flyway-execute-in-transaction
Closed

Default for spring.flway.execute-in-transaction is not aligned with Flyway's default#35447
TheHound wants to merge 1 commit intospring-projects:mainfrom
TheHound:flyway-execute-in-transaction

Conversation

@TheHound
Copy link
Contributor

FlywayProperties has executeInTransaction default as false, changing the org.flywaydb.core.api.configuration.Configuration#isExecuteInTransaction default. See also org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayConfiguration#configureProperties

Tested in 3.1.0-RC2.

Prior to change with no spring.flyway configuration set

Migrating schema "public" to version "0.0.1.0 - init-tables [non-transactional]"

@pivotal-cla
Copy link

@TheHound Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 16, 2023
@pivotal-cla
Copy link

@TheHound Thank you for signing the Contributor License Agreement!

Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this, @TheHound. Could you please also update defaultValuesAreConsistent in FlywayPropertiesTests to assert that the defaults are aligned?

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label May 16, 2023
FlywayProperties has executeInTransaction default as false, changing the org.flywaydb.core.api.configuration.Configuration#isExecuteInTransaction default. See also org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayConfiguration#configureProperties
@TheHound TheHound force-pushed the flyway-execute-in-transaction branch from c69602b to 6d8dc49 Compare May 16, 2023 14:52
@TheHound
Copy link
Contributor Author

Updated the commit with extra line in FlywayPropertiesTests#defaultValuesAreConsistent

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels May 16, 2023
@wilkinsona wilkinsona changed the title Restore executeInTransaction to default true Default for spring.flway.execute-in-transaction is not aligned with Flyway's default May 16, 2023
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels May 16, 2023
@wilkinsona wilkinsona added this to the 3.1.x milestone May 16, 2023
Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @TheHound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants