[ https://issues.apache.org/jira/browse/HIVE-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735592#comment-13735592 ]
Hive QA commented on HIVE-4901: ------------------------------- {color:red}Overall{color}: -1 no tests executed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12597134/HIVE-4901.1.patch Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/369/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/369/console Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Tests failed with: NonZeroExitCodeException: Command 'bash /data/hive-ptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ [[ -n '' ]] + export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m -Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128' + ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m -Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128' + cd /data/hive-ptest/working/ + tee /data/hive-ptest/logs/PreCommit-HIVE-Build-369/source-prep.txt + mkdir -p maven ivy + [[ svn = \s\v\n ]] + [[ -n '' ]] + [[ -d apache-svn-trunk-source ]] + [[ ! -d apache-svn-trunk-source/.svn ]] + [[ ! -d apache-svn-trunk-source ]] + cd apache-svn-trunk-source + svn revert -R . Reverted 'conf/hive-default.xml.template' Reverted 'common/src/java/org/apache/hadoop/hive/conf/HiveConf.java' Reverted 'ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestFileDump.java' Reverted 'ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFile.java' Reverted 'ql/src/java/org/apache/hadoop/hive/ql/io/orc/StringRedBlackTree.java' Reverted 'ql/src/java/org/apache/hadoop/hive/ql/io/orc/RecordReaderImpl.java' Reverted 'ql/src/java/org/apache/hadoop/hive/ql/io/orc/OutStream.java' Reverted 'ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java' Reverted 'ql/src/java/org/apache/hadoop/hive/ql/io/orc/WriterImpl.java' ++ egrep -v '^X|^Performing status on external' ++ awk '{print $2}' ++ svn status --no-ignore + rm -rf build hcatalog/build hcatalog/core/build hcatalog/storage-handlers/hbase/build hcatalog/server-extensions/build hcatalog/webhcat/svr/build hcatalog/webhcat/java-client/build hcatalog/hcatalog-pig-adapter/build common/src/gen common/src/java/org/apache/hadoop/hive/conf/HiveConf.java.orig ql/src/test/results/clientpositive/orc_dictionary_threshold.q.out ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestOrcFile.java.orig ql/src/test/resources/orc-file-dump-dictionary-threshold.out ql/src/test/queries/clientpositive/orc_dictionary_threshold.q + svn update Fetching external item into 'hcatalog/src/test/e2e/harness' External at revision 1512542. At revision 1512542. + patchCommandPath=/data/hive-ptest/working/scratch/smart-apply-patch.sh + patchFilePath=/data/hive-ptest/working/scratch/build.patch + [[ -f /data/hive-ptest/working/scratch/build.patch ]] + chmod +x /data/hive-ptest/working/scratch/smart-apply-patch.sh + /data/hive-ptest/working/scratch/smart-apply-patch.sh /data/hive-ptest/working/scratch/build.patch The patch does not appear to apply with p0 to p2 + exit 1 ' {noformat} This message is automatically generated. > Connection should be closed when Statement#execute() failed > byTTransportException > --------------------------------------------------------------------------------- > > Key: HIVE-4901 > URL: https://issues.apache.org/jira/browse/HIVE-4901 > Project: Hive > Issue Type: Improvement > Components: JDBC > Affects Versions: 0.11.0 > Environment: Ubuntu 11.10 > Reporter: Azrael Park > Assignee: Azrael Park > Priority: Trivial > Attachments: HIVE-4901.1.patch, HIVE-4901.patch > > > Currently, Connection is not closed when Statement#execute() failed by > TTransportException due to shutdown hiveserver. It means this connection > can't be used but connection status is still 'not closed'. > Close connection and throws 'connection is closed' exception from next > approach. > {noformat} > Scenario is as following: > 1. Client connect hiveserver. > 2. Hiveserver shutdown. > 3. Client execute query. > >>> Client got TTransportException and Connection is closed. > 4. Hiveserver start. > 5. Client execute query > >>> Client got exception messages 'Can't create statement, Connection is > closed'. > {noformat} > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira