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

fix: Issue 1127 configs dir fails with more than 40 files #1130

Merged

Conversation

sundar-mudupalli-work
Copy link
Contributor

HI,

data validator built all the configurations before calling a validation. "Building" a configuration involves creating a data_client, which connects to the database. When data-validation was called with configs run -cdir <dirnname> it opens a database connection for each file in the directory before calling the first validation. This results in running out of Shared memory in the case of Oracle (limit seems to be 40 open connections)

Code changed to call a validation immediately, each time after reading the yaml file from the directory. Tested this change on the same directory causing issues with the develop DVT branch. This does not run into Shared memory issues on Oracle. However, not entirely clear how this works - as data-validation does not appear to disconnect from each Oracle connection.

Sundar Mudupalli

@sundar-mudupalli-work sundar-mudupalli-work requested a review from a team as a code owner May 5, 2024 04:42
@sundar-mudupalli-work
Copy link
Contributor Author

/gcbrun

@sundar-mudupalli-work sundar-mudupalli-work changed the title Issue 1127 configs dir fails with more than 40 files fix: Issue 1127 configs dir fails with more than 40 files May 5, 2024
@sundar-mudupalli-work
Copy link
Contributor Author

/gcbrun

@nehanene15
Copy link
Collaborator

LGTM. I'm assuming the connections get garbage collected after the client.execute() is called in SQLAlchemy. Probably something to investigate further in the future.

@helensilva14
Copy link
Contributor

/gcbrun

@helensilva14 helensilva14 merged commit 15c81cf into develop May 15, 2024
5 checks passed
@helensilva14 helensilva14 deleted the issue-1127-configs_dir-fails-with-more-than-40-files branch May 15, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

configs run -cdir fails when 40 or more files are present (with Oracle source connection)
3 participants