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

153-Database-Connection-BugFix #154

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

Daniel-J-Mason
Copy link
Collaborator

First revision to try and correct connection bug.

Trade module IMC was throwing primary key conflicts as duplicate requests were being logged to the table in certain parallel processing cases.

This was due to backend checking with databse before insert, in that turn around time multple requests were stacking for the same system/station combo. Updated to match exploration IMC and regular databases to createIfNotExists allowing the database to handle ON CONFLICT cases itself.

This was likely slowly consuming the full connection pool which locked the rest of the system from continuing to interact with the database. This change is a needed fix regardless of whether its the true root causes of the larger issue.

…nt but the check is to see if the request is needed, rather than should it insert into local table.
@Daniel-J-Mason Daniel-J-Mason requested a review from jakaarl March 18, 2024 17:19
@Daniel-J-Mason Daniel-J-Mason requested a review from a team as a code owner March 18, 2024 17:19
@Daniel-J-Mason Daniel-J-Mason self-assigned this Mar 18, 2024
@Daniel-J-Mason Daniel-J-Mason added the bug Something isn't working label Mar 18, 2024
@Daniel-J-Mason Daniel-J-Mason merged commit 2870c52 into development Mar 18, 2024
4 checks passed
@Daniel-J-Mason Daniel-J-Mason deleted the 153-databases-losing-connection branch March 18, 2024 18:14
@Daniel-J-Mason Daniel-J-Mason linked an issue Mar 18, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Databases Losing Connection
2 participants