[ https://issues.apache.org/jira/browse/HIVE-2883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-2883: ------------------------------ Attachment: HIVE-2883.D2613.1.patch ashutoshc requested code review of "HIVE-2883 [jira] Metastore client doesnt close connection properly". Reviewers: JIRA https://issues.apache.org/jira/browse/HIVE-2883 Here is the patch which gets rid of this problem as per my hypothesis. I also tested it and the above noted stack trace doesnt occur anymore. While closing connection, it always fail with following trace. Seemingly, it doesnt have any harmful effects. 12/03/20 10:55:02 ERROR hive.metastore: Unable to shutdown local metastore client org.apache.thrift.transport.TTransportException: Cannot write to null outputStream at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:142) at org.apache.thrift.protocol.TBinaryProtocol.writeI32(TBinaryProtocol.java:163) at org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBinaryProtocol.java:91) at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62) at com.facebook.fb303.FacebookService$Client.send_shutdown(FacebookService.java:421) at com.facebook.fb303.FacebookService$Client.shutdown(FacebookService.java:415) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.close(HiveMetaStoreClient.java:310) TEST PLAN EMPTY REVISION DETAIL https://reviews.facebook.net/D2613 AFFECTED FILES metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java MANAGE HERALD DIFFERENTIAL RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/5985/ Tip: use the X-Herald-Rules header to filter Herald messages in your client. > Metastore client doesnt close connection properly > ------------------------------------------------- > > Key: HIVE-2883 > URL: https://issues.apache.org/jira/browse/HIVE-2883 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.9.0 > Reporter: Ashutosh Chauhan > Fix For: 0.9.0 > > Attachments: HIVE-2883.D2613.1.patch > > > While closing connection, it always fail with following trace. Seemingly, it > doesnt have any harmful effects. > {code} > 12/03/20 10:55:02 ERROR hive.metastore: Unable to shutdown local metastore > client > org.apache.thrift.transport.TTransportException: Cannot write to null > outputStream > at > org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:142) > at > org.apache.thrift.protocol.TBinaryProtocol.writeI32(TBinaryProtocol.java:163) > at > org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBinaryProtocol.java:91) > at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62) > at > com.facebook.fb303.FacebookService$Client.send_shutdown(FacebookService.java:421) > at > com.facebook.fb303.FacebookService$Client.shutdown(FacebookService.java:415) > at > org.apache.hadoop.hive.metastore.HiveMetaStoreClient.close(HiveMetaStoreClient.java:310) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira