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

Version based connection reset using queries #3423

Open
wants to merge 111 commits into
base: BABEL_5_X_DEV
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 108 commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
d96cea6
Adding toggle and conditionals
SiddharthBITS Jan 22, 2025
799eefa
Getting allowResetConnection var
SiddharthBITS Jan 22, 2025
e4a8359
Printing database metadata
SiddharthBITS Jan 22, 2025
bbc222a
Printing database metadata V2
SiddharthBITS Jan 22, 2025
5f09c72
Printing database metadata V3
SiddharthBITS Jan 22, 2025
8ad77ec
Printing database metadata V4
SiddharthBITS Jan 22, 2025
21afd04
@@VERSION
SiddharthBITS Jan 22, 2025
cc1ba57
; expected
SiddharthBITS Jan 22, 2025
22eee91
Extracting version from database
SiddharthBITS Jan 22, 2025
09e5a65
Extracting version from database
SiddharthBITS Jan 22, 2025
e726fe7
Extracting version from database V2
SiddharthBITS Jan 22, 2025
cc776ec
Extracting version from database V3
SiddharthBITS Jan 22, 2025
8be8d3e
Extracting version from database V4
SiddharthBITS Jan 22, 2025
fe37671
Extracting version from database V5
SiddharthBITS Jan 22, 2025
f171e0a
Extracting version from database V6
SiddharthBITS Jan 22, 2025
2ace22e
Empty
SiddharthBITS Jan 22, 2025
f53553f
Extracting version from database V7
SiddharthBITS Jan 22, 2025
bb6eaa0
Extracting version from database V8
SiddharthBITS Jan 22, 2025
0a77c97
Extracting version from database V9
SiddharthBITS Jan 22, 2025
0301fab
Extracting version from database V10
SiddharthBITS Jan 22, 2025
06dd7d4
Extracting version from database V11
SiddharthBITS Jan 22, 2025
b6dcac1
Extracting version from database V12
SiddharthBITS Jan 22, 2025
5fb2e45
Extracting version from database V13
SiddharthBITS Jan 22, 2025
53fecd9
Extracting version from database V14
SiddharthBITS Jan 22, 2025
bfe47bf
Extracting version from database V15
SiddharthBITS Jan 22, 2025
6330b25
Extracting version from database V16
SiddharthBITS Jan 22, 2025
a8ff17a
Extracting version from database V17
SiddharthBITS Jan 22, 2025
e05bb05
Extracting version from database V18
SiddharthBITS Jan 22, 2025
70254ac
Extracting version from database V19
SiddharthBITS Jan 22, 2025
85d40fb
Extracting version from database V20
SiddharthBITS Jan 22, 2025
be8e19d
Not closing connection after getting version
SiddharthBITS Jan 22, 2025
da35b98
Empty
SiddharthBITS Jan 22, 2025
792299e
Removing isUpgradeTest
SiddharthBITS Jan 22, 2025
b9e0207
Importing TestQueryFile class in JDBCCrossDialect
SiddharthBITS Jan 22, 2025
71d8afc
Importing TestQueryFile class in JDBCCrossDialect
SiddharthBITS Jan 22, 2025
31fcf9e
Importing as non-static class
SiddharthBITS Jan 22, 2025
0ec6b64
Moving version variables to Config class
SiddharthBITS Jan 22, 2025
3e4ba18
Clean up
SiddharthBITS Jan 22, 2025
8aa1279
Removing debugging logs
SiddharthBITS Jan 22, 2025
a3447a2
Checking test times
SiddharthBITS Jan 23, 2025
ff6db6f
Closing connections after all tests are done
SiddharthBITS Jan 23, 2025
1b3a369
Catching exceptions for close connections
SiddharthBITS Jan 23, 2025
c507438
Closing versionCon
SiddharthBITS Jan 23, 2025
4686472
Logs
SiddharthBITS Jan 23, 2025
f43dea0
Logs V2
SiddharthBITS Jan 23, 2025
211b69d
Logs V3
SiddharthBITS Jan 23, 2025
38e6e3b
Logs V3
SiddharthBITS Jan 23, 2025
6388a18
Getting github internal logs
SiddharthBITS Jan 23, 2025
6795f34
Getting github internal logs V2
SiddharthBITS Jan 23, 2025
6babe8e
Intense logging
SiddharthBITS Jan 23, 2025
b1b31ca
Closing all connections
SiddharthBITS Jan 23, 2025
3228283
Debugging the skipped connection
SiddharthBITS Jan 23, 2025
f212a01
Disabling JDBC tests
SiddharthBITS Jan 23, 2025
513f53f
Disabling atatuservar test
SiddharthBITS Jan 23, 2025
b5745bd
Disabling atatuservar test
SiddharthBITS Jan 23, 2025
c54b90d
Clearing atatuservar output
SiddharthBITS Jan 23, 2025
37407f5
Disabling atat tests
SiddharthBITS Jan 23, 2025
3b459d8
Enabling prepare and verify
SiddharthBITS Jan 23, 2025
f1cd66e
Trying closing connection for @@ tests
SiddharthBITS Jan 24, 2025
4a3d13b
removing atatuservar
SiddharthBITS Jan 24, 2025
6ad90cc
removing atatuservar and allowing reset
SiddharthBITS Jan 24, 2025
058bae0
Enabling atatuservar except cursor tests
SiddharthBITS Jan 24, 2025
4485633
Commenting atatuservar down
SiddharthBITS Jan 24, 2025
02fa3c5
976 + disabled
SiddharthBITS Jan 24, 2025
c5a45c4
452 + disabled
SiddharthBITS Jan 24, 2025
8f08777
Resetting atatuservar.sql
SiddharthBITS Jan 24, 2025
c847177
Disabling pg_hint before atatuservar
SiddharthBITS Jan 24, 2025
31ff657
Changing expected output
SiddharthBITS Jan 24, 2025
2764174
Changing atatuservar.out
SiddharthBITS Jan 24, 2025
cdbb69c
Closing pg_hint leaks in tests
SiddharthBITS Jan 24, 2025
b80e18d
Closing pg_hint leaks in tests
SiddharthBITS Jan 24, 2025
582c942
Pairing enable_pg_hint on and off
SiddharthBITS Jan 26, 2025
ecc3aa6
Resetting
SiddharthBITS Jan 26, 2025
cf9efa0
Pairing on and off pg_hint
SiddharthBITS Jan 27, 2025
42e4a00
Changing BABEL-3513_before_15_8_or_16_4-vu-prepare
SiddharthBITS Jan 27, 2025
d2a7fa3
Changing BABEL-3513_before_15_8_or_16_4-vu-prepare
SiddharthBITS Jan 27, 2025
dd7a818
Updating .out files
SiddharthBITS Jan 27, 2025
e26607e
Updating .out files
SiddharthBITS Jan 27, 2025
40f5e0f
Matching outputs
SiddharthBITS Jan 27, 2025
367f3b8
Output edits
SiddharthBITS Jan 27, 2025
c592d01
Matching atatuservar.out
SiddharthBITS Jan 27, 2025
8e1e195
Matching atatuservar.out V2
SiddharthBITS Jan 27, 2025
ef5d0ca
Matching atatuservar.out V3
SiddharthBITS Jan 27, 2025
eb09490
Matching atatuservar.out V4
SiddharthBITS Jan 27, 2025
d92aec7
Enabling all tests
SiddharthBITS Jan 27, 2025
72b42d1
Resetting parallel-query changes
SiddharthBITS Jan 27, 2025
5049a37
Testing for 3512 and 3592
SiddharthBITS Jan 27, 2025
8b137c2
Testing for 3512 and 3592
SiddharthBITS Jan 27, 2025
770e623
Testing for 3512 and 3592 V2
SiddharthBITS Jan 27, 2025
fc7945f
Testing all
SiddharthBITS Jan 27, 2025
da117a4
Removing time changes
SiddharthBITS Jan 27, 2025
7c78f1a
Removing time changes V2
SiddharthBITS Jan 27, 2025
07cb646
Time changes and JAVA cleanup
SiddharthBITS Jan 27, 2025
fd0bfb6
Removing time changes V3
SiddharthBITS Jan 27, 2025
de4c55d
testing time diff
SiddharthBITS Jan 28, 2025
b53b4a5
testing time diff V2
SiddharthBITS Jan 28, 2025
70eb588
Merge branch 'babelfish-for-postgresql:BABEL_5_X_DEV' into Version_ba…
SiddharthBITS Jan 28, 2025
cb8d953
Sign off
SiddharthBITS Jan 28, 2025
c8b6081
Merge branch 'Version_based_connection_reset_using_Queries' of https:…
SiddharthBITS Jan 28, 2025
55d62af
Cleanup
SiddharthBITS Jan 28, 2025
1affa40
JAVA Cleanup
SiddharthBITS Jan 29, 2025
cfe9721
Running tests again
SiddharthBITS Jan 29, 2025
bb82690
Running tests again
SiddharthBITS Jan 29, 2025
b8824bb
Merge branch 'babelfish-for-postgresql:BABEL_5_X_DEV' into Version_ba…
SiddharthBITS Jan 30, 2025
cf08ced
Running tests again
SiddharthBITS Jan 30, 2025
33b7911
Running tests again
SiddharthBITS Jan 30, 2025
903aa49
Running tests again
SiddharthBITS Jan 30, 2025
da16cd1
Merge branch 'Version_based_connection_reset_using_Queries' of https:…
SiddharthBITS Jan 30, 2025
783806a
Reverting
SiddharthBITS Jan 30, 2025
e2d04fb
Cleanup changes
SiddharthBITS Jan 30, 2025
c9fdebd
Running tests again
SiddharthBITS Jan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ runs:
tar_dir: ${{ matrix.upgrade-path.last_version }}
run: |
cd test/JDBC/
export isUpgradeTestMode=true
if [[ ${{ inputs.server_collation_name }} != "default" ]]; then
export serverCollationName=${{ inputs.server_collation_name }}
fi
Expand Down
1 change: 0 additions & 1 deletion .github/composite-actions/run-verify-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ runs:
touch dummy_schedule
echo "all" > dummy_schedule
export scheduleFile=dummy_schedule
export isUpgradeTestMode=true
if [[ ${{ inputs.server_collation_name }} != "default" ]]; then
export serverCollationName=${{ inputs.server_collation_name }}
fi
Expand Down
2 changes: 0 additions & 2 deletions .github/composite-actions/setup-base-version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ runs:
export serverCollationName=${{ inputs.server_collation_name }}
fi
if [[ "$migr_mode" == "multi-db" ]];then
export isUpgradeTestMode=true
base_dir=${{ matrix.upgrade-path.path[0] }}
if [[ "$base_dir" == *"latest"* || ${{ inputs.dump_restore }} == 'true' ]]; then
base_dir="latest"
Expand All @@ -210,7 +209,6 @@ runs:
exit 1
fi
done
export isUpgradeTestMode=true
export inputFilesPath=input
for filename in $(grep -v "^ignore.*\|^#.*\|^cmd.*\|^all.*\|^$" upgrade/$base_dir/schedule); do
sed -i "s/\b$filename[ ]*\b$/$filename-vu-prepare/g" upgrade/$base_dir/schedule
Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-3291.out
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,13 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3291_t1
go
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-3292.out
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3292_schema.t1
go

Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-3293.out
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3293_schema.t1
go

Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-3294.out
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,13 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3294_t1
go
8 changes: 8 additions & 0 deletions test/JDBC/expected/BABEL-3295.out
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3295_t1
go

Expand Down
14 changes: 14 additions & 0 deletions test/JDBC/expected/BABEL-3512.out
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,20 @@ Babelfish T-SQL Batch Parsing Time: 0.084 ms


-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
Query Text: select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false)
Result
SiddharthBITS marked this conversation as resolved.
Show resolved Hide resolved
~~END~~

~~START~~
text
Babelfish T-SQL Batch Parsing Time: 0.117 ms
~~END~~


SET babelfish_showplan_all OFF
GO

Expand Down
6 changes: 6 additions & 0 deletions test/JDBC/expected/BABEL-3513-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ go

exec sp_babelfish_configure 'enable_pg_hint', 'on', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off'
go
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ go

exec sp_babelfish_configure 'enable_pg_hint', 'on', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off'
go
14 changes: 14 additions & 0 deletions test/JDBC/expected/BABEL-3592.out
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,20 @@ Babelfish T-SQL Batch Parsing Time: 0.080 ms


-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
Query Text: select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false)
Result
~~END~~

~~START~~
text
Babelfish T-SQL Batch Parsing Time: 0.121 ms
~~END~~


set babelfish_showplan_all off
go

Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3291.out
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,13 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3291_t1
go
8 changes: 8 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3292.out
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3292_schema.t1
go

Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3293.out
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3293_schema.t1
go

Expand Down
8 changes: 8 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3294.out
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,13 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3294_t1
go
8 changes: 8 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3295.out
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
off
~~END~~


drop table babel_3295_t1
go

Expand Down
14 changes: 14 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3512.out
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,20 @@ Babelfish T-SQL Batch Parsing Time: 0.071 ms


-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
Query Text: select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false)
Result
~~END~~

~~START~~
text
Babelfish T-SQL Batch Parsing Time: 0.193 ms
~~END~~


SET babelfish_showplan_all OFF
GO

Expand Down
6 changes: 6 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3513-vu-prepare.out
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,9 @@ go

exec sp_babelfish_configure 'enable_pg_hint', 'on', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off'
go
14 changes: 14 additions & 0 deletions test/JDBC/expected/parallel_query/BABEL-3592.out
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,20 @@ Babelfish T-SQL Batch Parsing Time: 0.078 ms


-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go
~~START~~
text
Query Text: select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false)
Result
~~END~~

~~START~~
text
Babelfish T-SQL Batch Parsing Time: 0.193 ms
~~END~~


set babelfish_showplan_all off
go

Expand Down
5 changes: 4 additions & 1 deletion test/JDBC/input/pg_hint_plan/BABEL-3291.mix
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ set babelfish_showplan_all off
go

-- cleanup
drop table babel_3291_t1
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

drop table babel_3291_t1
go
3 changes: 3 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3292.mix
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

drop table babel_3292_schema.t1
go

Expand Down
5 changes: 4 additions & 1 deletion test/JDBC/input/pg_hint_plan/BABEL-3293.mix
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

drop table babel_3293_schema.t1
go

Expand All @@ -261,4 +264,4 @@ drop table babel_3293_t3
go

drop schema babel_3293_schema
go
go
3 changes: 3 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3294.mix
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

drop table babel_3294_t1
go
3 changes: 3 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3295.mix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ set babelfish_showplan_all off
go

-- cleanup
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

drop table babel_3295_t1
go

Expand Down
3 changes: 3 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3512.mix
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ EXEC babel_3512_comment_test_2
GO

-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

SET babelfish_showplan_all OFF
GO

Expand Down
6 changes: 6 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3513-vu-prepare.mix
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ go

exec sp_babelfish_configure 'enable_pg_hint', 'on', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off'
go
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ go

exec sp_babelfish_configure 'enable_pg_hint', 'on', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off', 'server'
go

exec sp_babelfish_configure 'enable_pg_hint', 'off'
go
3 changes: 3 additions & 0 deletions test/JDBC/input/pg_hint_plan/BABEL-3592.mix
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ EXEC babel_3592_proc_mixed_statements
GO

-- clean up
select set_config('babelfishpg_tsql.enable_pg_hint', 'off', false);
go

set babelfish_showplan_all off
go

Expand Down
Loading