Skip to content
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

[Merged by Bors] - Fix db-allow-schema-drift handling #6431

Closed
wants to merge 3 commits into from

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Nov 4, 2024


Motivation

db-allow-schema-drift stopped working after adding separate conn pool for the API

Description

Fix schema drift handling for the API db connection pool

Test Plan

Verify on a mainnet node

@ivan4th ivan4th changed the title node: fix db-allow-schema-drift handling Fix db-allow-schema-drift handling Nov 4, 2024
@jellonek
Copy link
Contributor

jellonek commented Nov 4, 2024

tbh. few lines above db was already checked for schema difference, so maybe we should there even use WithNoCheckSchemaDrift?

@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 4, 2024

@jellonek makes sense, it's actually enough to just ignore schema drift for the api conn pool

@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 4, 2024

bors merge

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.8%. Comparing base (4c18ec4) to head (58b0994).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #6431   +/-   ##
=======================================
  Coverage     79.8%   79.8%           
=======================================
  Files          341     341           
  Lines        44204   44205    +1     
=======================================
+ Hits         35282   35294   +12     
+ Misses        6926    6918    -8     
+ Partials      1996    1993    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ivan4th
Copy link
Contributor Author

ivan4th commented Nov 4, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Nov 4, 2024
-------

## Motivation

`db-allow-schema-drift` stopped working after adding separate conn pool for the API
@spacemesh-bors
Copy link

spacemesh-bors bot commented Nov 4, 2024

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Fix db-allow-schema-drift handling [Merged by Bors] - Fix db-allow-schema-drift handling Nov 4, 2024
@spacemesh-bors spacemesh-bors bot closed this Nov 4, 2024
@spacemesh-bors spacemesh-bors bot deleted the fix/api-schema-drift branch November 4, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants