Feedback
Did this article resolve your question/issue?

   

Article

Hive JDBC driver serializes Connection.close(); and has a finalize() method that can be blocked

Information

 
TitleHive JDBC driver serializes Connection.close(); and has a finalize() method that can be blocked
URL Namehive-jdbc-driver-serializes-connection-close-and-has-a-finalize-method-that-can-be-blocked
Article Number000117732
EnvironmentProduct: Progress DataDirect for JDBC for Apache Hive Driver
Version : 6.0.1.000092
OS: JAVA
Database : Hive
Application: All supported applications
Question/Problem Description
Hive JDBC driver serializes Connection.close(); and has a finalize() method that can be blocked which causes a hang.
Steps to Reproduce
Clarifying Information
Error Message"Finalizer" daemon prio=10 tid=0x00007f3d2c08e000 nid=0x7d0e waiting for monitor entry [0x00007f3d259bb000]
java.lang.Thread.State: BLOCKED (on object monitor)
at datadirect.jdbc.hivebase.dde0.close(Unknown Source)
- waiting to lock <0x00000000ff97f1b8> (a datadirect.jdbc.hivebase.ddah)
at datadirect.jdbc.hivebase.dde0.finalize(Unknown Source)
at java.lang.System$2.invokeFinalize(System.java:1210)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
Defect NumberDefect XDBC-1649
Enhancement Number
Cause
The exact cause is not known at this time..
Resolution
Until the fix is available, use the workaround below.
Workaround
 Set  the connection option doCleanUpDuringFinalization=false
Notes
Last Modified Date8/3/2018 6:04 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.