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

Repo connection leak when running integration tests #48

Closed
nj1973 opened this issue Dec 4, 2023 · 1 comment · Fixed by #76
Closed

Repo connection leak when running integration tests #48

nj1973 opened this issue Dec 4, 2023 · 1 comment · Fixed by #76
Labels
tests Issues relates only to tests

Comments

@nj1973
Copy link
Collaborator

nj1973 commented Dec 4, 2023

When we run integration tests we are leaking OrchestrationRepo client connections and eventually tests fail because we exceed the Oracle processes parameter.

It's not a problem at the moment because most integration tests have not been converted to the new repo.

However this is a pre-req to issue #42

@nj1973 nj1973 added the tests Issues relates only to tests label Dec 4, 2023
@nj1973
Copy link
Collaborator Author

nj1973 commented Dec 22, 2023

SQL to monitor sessions:

set lines 200 pages 100
column USERNAME format a10
column module format a25
column action format a45
select username,module,action,last_call_et
from v$session where username like 'G%'
order by last_call_et;

I ran a few tests concurrently:

pytest -n 3 tests/integration/scenarios/test_offload_*.py

And after a few minutes saw a build up of sessions in Oracle:

USERNAME   MODULE                    ACTION                                        LAST_CALL_ET
---------- ------------------------- --------------------------------------------- ------------
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            1
GOE_ADM    Gluent Offload Engine     OffloadSourceTable(GOE_TEST.STORY_PBO_LIST)              1
GOE_ADM    Gluent Offload Engine     OffloadSourceTable(GOE_TEST.RPA_DATE)                    1
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            1
GOE_ADM    Gluent Offload Engine     OffloadSourceTable(GOE_TEST.RPA_NUM)                     1
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            1
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            1
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            8
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            9
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            9
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                            9
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           10
GOE_ADM    python3@neiljohnson.c.goo                                                         16
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     test_offload_pbo_unicode                                18
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           19
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           26
GOE_ADM    python3@neiljohnson.c.goo                                                         31
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           34
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           36
GOE_ADM    python3@neiljohnson.c.goo                                                         42
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     test_offload_pbo_ts                                     44
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           44
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           48
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           48
GOE_ADM    Gluent Offload Engine     test_offload_pbo_dim                                    62
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           62
GOE_ADM    Gluent Offload Engine     test_offload_pbo_range                                  66
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           66
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           71
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           79
GOE_ADM    Gluent Offload Engine     test_offload_pbo_char_pad                               79
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           80
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                           88
GOE_ADM    python3@neiljohnson.c.goo                                                         99
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          102
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          106
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          106
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          112
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          118
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          119
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          124
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          125
GOE_ADM    python3@neiljohnson.c.goo                                                        137
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          139
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          139
GOE_ADM    python3@neiljohnson.c.goo                                                        141
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          143
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          147
GOE_ADM    Gluent Offload Engine     test_offload_pbo_late_range_100_0                      147
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          147
GOE_ADM    Gluent Offload Engine     test_offload_pbo_late_list_as_range_100_0              151
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          151
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          165
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          166
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          169
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          177
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          178
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          181
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          197
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          207
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          207
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          208
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          216
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          216
GOE_ADM    Gluent Offload Engine     test_offload_pbo_late_range_90_10                      216
GOE_ADM    Gluent Offload Engine     test_offload_pbo_late_list_as_range                    217
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          217
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          217
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          218
GOE_ADM    python3@neiljohnson.c.goo                                                        234
           glers.com (TNS V1-V3)

GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          237
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          237
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          241
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          242
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          248
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          248
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          249
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          249
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          256
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          260
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          261
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          264
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          270

USERNAME   MODULE                    ACTION                                        LAST_CALL_ET
---------- ------------------------- --------------------------------------------- ------------
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          271
GOE_ADM    Gluent Offload Engine     OracleOrchestrationRepoClient                          280

@nj1973 nj1973 linked a pull request Dec 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Issues relates only to tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant