Closed KushaalShroff closed 2 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
contrib/babelfishpg_tds/src/backend/tds/tdsbulkload.c | 127 | 146 | 86.99% | ||
<!-- | Total: | 137 | 156 | 87.82% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
contrib/babelfishpg_tds/src/backend/tds/tdsutils.c | 3 | 73.8% | ||
contrib/babelfishpg_tds/src/backend/tds/tdscomm.c | 3 | 76.03% | ||
contrib/babelfishpg_tds/src/backend/tds/tdsbulkload.c | 3 | 76.16% | ||
contrib/babelfishpg_tsql/src/session.c | 6 | 96.77% | ||
contrib/babelfishpg_tsql/src/databasepropertyex.c | 11 | 69.16% | ||
contrib/babelfishpg_tsql/src/collation.c | 94 | 81.27% | ||
contrib/babelfishpg_common/src/collation.c | 94 | 79.53% | ||
contrib/babelfishpg_tds/src/backend/tds/tdslogin.c | 97 | 76.02% | ||
contrib/babelfishpg_tsql/src/dbcmds.c | 101 | 74.8% | ||
contrib/babelfishpg_tsql/src/pl_handler.c | 107 | 90.15% | ||
<!-- | Total: | 817 | --> |
Totals | |
---|---|
Change from base Build 10571839540: | 0.2% |
Covered Lines: | 44637 |
Relevant Lines: | 60143 |
Description
This commit fixes an issue with the error handling and cleanup phase of the Insert Bulk Process.
Issues Resolved BABEL-5200, BABEL-5199, BABEL-5220
Authored-by: Kushaal Shroff kushaal@amazon.com Signed-off-by: Kushaal Shroff kushaal@amazon.com
Test Scenarios Covered
For Reset-connection, Although the tests in 6. do reset but for validation through logs I added a temp log to debug TdsResetConnection and with this log its evident that pid 21384 is being reset and reused for Bulk Load
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.