Add Oracle connection pool#3770
Add Oracle connection pool#3770losipiuk merged 3 commits intotrinodb:masterfrom eskabetxe:oracleConnectionPoll
Conversation
There was a problem hiding this comment.
Can we have an interface for ConnectionProvider and have implementation for for both pooledDataSource and a driver based one and bind them in the run time ?
There was a problem hiding this comment.
hi @Praveen2112, I change this factory to be only a pool factory..
for driver based I leave the DriverConnectorFactory that is already used..
this was a old code from previous PR.
if you could check this changes.
|
@eskabetxe can u change
|
|
@tooptoop4 I create a PR with your request |
presto-oracle/src/test/java/io/prestosql/plugin/oracle/TestOraclePoolDistributedQueries.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/test/java/io/prestosql/plugin/oracle/TestOracleConfig.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/test/java/io/prestosql/plugin/oracle/TestOracleDistributedQueries.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/test/java/io/prestosql/plugin/oracle/TestOraclePoolIntegrationSmokeTest.java
Outdated
Show resolved
Hide resolved
losipiuk
left a comment
There was a problem hiding this comment.
A few cleanup comments mostly looks good.
losipiuk
left a comment
There was a problem hiding this comment.
Two more nits. Thanks.
@Praveen2112, @ebyhr are you good with this one already?
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OraclePoolConnectorFactory.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OraclePoolConnectorFactory.java
Outdated
Show resolved
Hide resolved
electrum
left a comment
There was a problem hiding this comment.
Can you squash the last three commits?
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OracleClientModule.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OraclePoolConnectorFactory.java
Outdated
Show resolved
Hide resolved
presto-oracle/src/main/java/io/prestosql/plugin/oracle/OracleConfig.java
Outdated
Show resolved
Hide resolved
|
@losipiuk could this be merged? |
Praveen2112
left a comment
There was a problem hiding this comment.
Sorry for the delayed response. Looks good to me . But can we move the integration test changes as a separate commit
|
@Praveen2112 done |
|
Checkstyle failed. |
|
@losipiuk fixed |
presto-oracle/pom.xml
Outdated
There was a problem hiding this comment.
This is being added in Extract a variable with Oracle JDBC version commit. Does not look intentional.
(Not sure why would you want to separate this btw, but maybe this was agreed upon)
There was a problem hiding this comment.
was asked here #3770 (comment)
I let the new dependency because extracting only the version will lead to a "why extract the version if only used in one dependency"
There was a problem hiding this comment.
I think that at the time i suggested extracting the commit there was just one use of dep.oracle.version. But maybe I missed the other one.
Anyway.
- Either leave commit which extract variable and only use it for
ojdbc8entry. And then adducpin followup commit together with pooling implementation. - Or squash two commits together.
I am slightly toward former one.
There was a problem hiding this comment.
the Oracle IntegrationTest cleanups should not be a separate commit
(we should not add TestOraclePoolIntegrationSmokeTest being a copy of TestOracleIntegrationSmokeTest` and only then extract common super class)
There was a problem hiding this comment.
should I squash the 3 commits?
There was a problem hiding this comment.
It should be either:
2 commits:
- rafactor tests extractin
BaseOracleIntegrationSmokeTest(still with 1 concrete subclassTestOracleIntegrationSmokeTest) - implement pooling and add
TestOraclePoolIntegrationSmokeTest
Or just 1 commit which refactors tests, add pooling implementation and TestOraclePoolIntegrationSmokeTest alltogether.
There was a problem hiding this comment.
I guess the OracleQueryRunner changes can be treated as a separate commit while other the tests can be a part of Add Oracle connection pool
|
(just skimming) |
|
@eskabetxe there are two minor comments still.
Are you planning to address those? It would be nice to merge this one eventually :) |
|
@losipiuk sorry for the delay.. |
|
Thanks. Looks good modulo checkstyle violation: |
|
@losipiuk fixed |
|
Merged, thanks! |
as asked here: #1959 (comment)
this is to allow to configure a oracle connection pool