question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MD5SUM updating at every execution

See original GitHub issue

Environment

Liquibase Version: Community 4.14

Liquibase Integration & Version: CLI

Liquibase Extension(s) & Version: Oracle 4.14, Teradata 4.14, neo4j 4.14, netezza 4.14 (dbeaver extension)

Database Vendor & Version: Oracle 12.1.0.2

Operating System Type & Version: Linux 5.4.0-1084-aws #91~18.04.1-Ubuntu SMP x86_64 GNU/Linux

Infrastructure Type/Provider: AWS

Description

I have a customer who has a large number of changesets that get the MD5SUM updated in databasechangelog at the start of every deployment, even though the changesets have not been modified and the changesets are not actually executed. The Liquibase output looks like this:

[2022-09-02 15:46:24] INFO [liquibase.executor] UPDATE TST4CIS.DATABASECHANGELOG SET MD5SUM = '8:cf74d98bf9923254d88d77efba90e1ec' WHERE ID = 'ads_cisd015.pks' AND AUTHOR = 'xxx' AND FILENAME = 'Packages/db-changelog-1.xml'
[2022-09-02 15:46:24] INFO [liquibase.executor] 1 row(s) affected
[2022-09-02 15:46:24] INFO [liquibase.executor] UPDATE TST4CIS.DATABASECHANGELOG SET MD5SUM = '8:a1d70adee4b5b830d4b5ab103c371548' WHERE ID = 'ads_cisd109.pks' AND AUTHOR = 'xxx' AND FILENAME = 'Packages/db-changelog-1.xml'
[2022-09-02 15:46:24] INFO [liquibase.executor] 1 row(s) affected
[2022-09-02 15:46:24] INFO [liquibase.executor] UPDATE TST4CIS.DATABASECHANGELOG SET MD5SUM = '8:859cb9b9b4174f5322329ee434232c55' WHERE ID = 'bobfixtca.pkb' AND AUTHOR = 'xxx' AND FILENAME = 'Packages/db-changelog-1.xml'
[2022-09-02 15:46:24] INFO [liquibase.executor] 1 row(s) affected

It’s strange because it’s not all of his changesets, only the changesets that contain PL/SQL (packages, procedures, trigggers, etc) , executed via sqlFile, and the files have .pkb, .pks, .prc, and .sql extensions.

This seems to have started after two changes we made:

  1. Upgraded to 4.12
  2. Added sql-log-level=INFO

This is only occurring with this one customer (we have 100s) so I’m assuming it’s something about his changelogs that is causing this, but I don’t see anything obvious.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
CGarcescommented, Oct 3, 2022

I’ll try to reproduce the error, but is a production environment, it will take some time.

1reaction
doakdcommented, Sep 14, 2022

Files have been sent.

Looks like the issue is only occurring when sqlFile is used in xml (that I’m aware of anyway). Does not occur when .sql files are used.

We were previously using 4.9.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MD5SUM updating at every execution - Liquibase Forum
I have a customer who has a large number of changesets that get the MD5SUM updated in databasechangelog at the start of every...
Read more >
How do I easily update list of md5sums? - Unix Stack Exchange
Basically I would like to get the difference between the file list created by find -type f and the list in the MD5SUM...
Read more >
How to keep liquibase changeset md5 hash after version ...
After the update all md5sum values were gone in the database (replaced by NULL ) ... When liquibase is executed against an empty...
Read more >
md5sum Command in Linux with Examples - GeeksforGeeks
Now, execute command with –warn option. # md5sum -c --warn checkmd5.md5 /home/mandeep/test/test.cpp: OK. It don't produce any warning.
Read more >
Learn How to Generate and Verify Files with MD5 Checksum ...
In Linux, the md5sum program computes and checks MD5 hash values of a file. ... comes pre-installed on most, if not all Linux...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found