5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-21 11:21:39 +08:00
sqoop/src
Andrew Bayer 2240be8807 Cache connections to Oracle across ConnManagers.
OracleManager now caches Connection instances for subsequent OracleManager
instances.
Refactored uses of ConnManager to call close() before discarding them.
This allows the Oracle JUnit tests to sleep less frequently to wait for Oracle
to reap closed server-side connection resources, improving Oracle test speed
by 50%.

Sleeping cannot be fully eliminated because MapReduce-side Connections are not
governed by this caching mechanism.

Also added some debugging advice re. this topic to OracleManagerTest's comment.

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149872 13f79535-47bb-0310-9956-ffa450edef68
2011-07-22 20:03:39 +00:00
..
docs If --hive-import and --generate-only are specified, create a ddl script file. 2011-07-22 20:03:38 +00:00
java/org/apache/hadoop/sqoop Cache connections to Oracle across ConnManagers. 2011-07-22 20:03:39 +00:00
test/org/apache/hadoop/sqoop Cache connections to Oracle across ConnManagers. 2011-07-22 20:03:39 +00:00