Skip to content

Liquibase actuator endpoint does not give correct information when multiple databases are used in one project #19171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

polarbear567
Copy link
Contributor

No description provided.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 28, 2019
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 the PR. If you have time, could you please look at adding a test for multiple datasources that reproduces the problem and verifies the fix?

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Nov 28, 2019
@polarbear567
Copy link
Contributor Author

polarbear567 commented Nov 29, 2019

Sure, I test in local, and see if there is an easy way to migrate to test.

@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 Nov 29, 2019
@polarbear567
Copy link
Contributor Author

For the original LiquibaseEndpoint code, this test returns:

Expected :"classpath:/db/changelog/db.changelog-master-backup.yaml"
Actual   :"classpath:/db/changelog/db.changelog-master.yaml"

For the fixed code, it can pass the test correctly.

@wilkinsona wilkinsona added type: bug A general bug and removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged labels Nov 29, 2019
@wilkinsona wilkinsona changed the title Liquibase actuator does not give correct information when multiple databases are used in one project Liquibase actuator endpoint does not give correct information when multiple databases are used in one project Nov 29, 2019
@wilkinsona wilkinsona added this to the 2.1.x milestone Nov 29, 2019
@wilkinsona wilkinsona self-assigned this Nov 29, 2019
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.

Great stuff. Thanks very much, @polarbear567.

wilkinsona pushed a commit that referenced this pull request Nov 29, 2019
Previously, the endpoint used the same change log history service for
for each SpringLiquibase bean that it processed. This resulted in
pollution of the reported changes as the history of each bean was not
isolated.

This commit updates the endpoint to use a new history service for each
SpringLiquibase bean that is processed.

See gh-19171
@wilkinsona wilkinsona modified the milestones: 2.1.x, 2.1.11 Nov 29, 2019
@wilkinsona
Copy link
Member

Thanks again, @polarbear567. The proposed changes have been merged into 2.1.x and forwards to 2.2.x and master.

@polarbear567 polarbear567 deleted the bug/fixLiquibaseEndpoint branch November 23, 2021 03:19
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.

3 participants