configs run -cdir fails when 40 or more files are present (with Oracle source connection) #1127
Labels
priority: p1
High priority. Fix may be included in the next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi,
When I try
data-validation -v configs run -cdir test_yamls
and the directory has more than 40 files (with Oracle source connection), I get the error messageUpon review the issue seems to be in the code. What we do when presented with multiple files is to build a list config_manager objects - one for each yaml file. After we have built the config managers for all the yaml files, we then execute the validation for each config manager. This is in lines 361-371 of the file
data_validation/__main__.py
as follows:This all seems fine - until we have 40 yaml files. So we build 40 config manager objects before we execute any validation - sure not a problem? When we build a config manager object - we open a connection to the database - so we have 40 connections and have not run any validation. The Oracle library seems to have a limit of 39 or so connections and after that complains of running out of shared memory. It appears the right approach might be to build a config_manager object, run the validation and then repeat. The code is in
data_validation/__main__.py
- lines 374-386 as follows:Suggestions on how to fix ?
The text was updated successfully, but these errors were encountered: