-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix v1.43.2 migration failure #2450
Fix v1.43.2 migration failure #2450
Conversation
Signed-off-by: Xin Li <xin.li@hedera.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## main #2450 +/- ##
=========================================
Coverage 90.83% 90.83%
Complexity 2432 2432
=========================================
Files 420 420
Lines 11593 11593
Branches 1013 1013
=========================================
Hits 10530 10530
Misses 732 732
Partials 331 331 Continue to review full report at Codecov.
|
...porter/src/main/resources/db/migration/v1/V1.43.2__add_missing_token_account_association.sql
Show resolved
Hide resolved
$$ language plpgsql; | ||
|
||
create trigger missing_token_account_trigger after insert | ||
on account_balance_file | ||
execute procedure add_missing_token_account_association(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're modifying a migration that has already successfully ran in some environments. That's usually very bad to do. It might be fine to do here but you'll need to manually fixup the working environments or it'll complain of migration checksum mismatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was gonna say wouldn't it be cleaner to just add this in V1.43.3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think since it's not yet in a GA release, might be better to fix in the same migration script and manually fix the envs which are already on v0.39.0-rc1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is V1.43.2 fails in one env but not another. So we can't just add a V1.43.3 to fix the failing env.
- change ownership of the temp table and the function in the sql script to the importer user Signed-off-by: Xin Li <xin.li@hedera.com>
Description:
This PR fixes the v1.43.2 migration issue in our k8s environment.
Related issue(s):
Fixes #2449
Notes for reviewer:
Manually tested locally with
postgres [9.6, 13.3]
and
db.username
same as / different thandb.owner
Checklist