Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CDC23200C01 for ; Thu, 19 Jan 2017 13:18:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CC5F4160B54; Thu, 19 Jan 2017 12:18:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EED15160B42 for ; Thu, 19 Jan 2017 13:18:44 +0100 (CET) Received: (qmail 63815 invoked by uid 500); 19 Jan 2017 12:18:44 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 63804 invoked by uid 99); 19 Jan 2017 12:18:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 12:18:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9790F1A03FD for ; Thu, 19 Jan 2017 12:18:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NMxP41viLioW for ; Thu, 19 Jan 2017 12:18:41 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0909C5FB1E for ; Thu, 19 Jan 2017 12:18:41 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B4FECE8EF6 for ; Thu, 19 Jan 2017 12:18:27 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D4AC825291 for ; Thu, 19 Jan 2017 12:18:26 +0000 (UTC) Date: Thu, 19 Jan 2017 12:18:26 +0000 (UTC) From: "Zhaofei Meng (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-8409) HDFS client RPC call throws "java.lang.IllegalStateException" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 Jan 2017 12:18:46 -0000 [ https://issues.apache.org/jira/browse/HDFS-8409?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15829= 812#comment-15829812 ]=20 Zhaofei Meng edited comment on HDFS-8409 at 1/19/17 12:17 PM: -------------------------------------------------------------- I hava an exception as follows=EF=BC=9A 2017-01-16 06:00:50,236 ERROR metastore.RetryingHMSHandler (RetryingHMSHand= ler.java:invoke(155)) - MetaException(message:java.lang.IllegalStateExcepti= on) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newMetaExc= eption(HiveMetaStore.java:5568) at org.apache.hadoop.hive.metastore.HiveMet= aStore$HMSHandler.create_table_with_environment_context(HiveMetaStore.java:= 1503) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at su= n.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.= java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.= hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107= ) at com.sun.proxy.$Proxy10.create_table_with_environment_context(Unknown S= ource) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processo= r$create_table_with_environment_context.getResult(ThriftHiveMetastore.java:= 9817) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor= $create_table_with_environment_context.getResult(ThriftHiveMetastore.java:9= 801) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) = at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProce= ssor.java:110) at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run= (TUGIBasedProcessor.java:106) at java.security.AccessController.doPrivilege= d(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at o= rg.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.ja= va:1491) at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUG= IBasedProcessor.java:118) at org.apache.thrift.server.TThreadPoolServer$Wor= kerProcess.run(TThreadPoolServer.java:285) at java.util.concurrent.ThreadPo= olExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.= ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thr= ead.run(Thread.java:745) Caused by: java.lang.IllegalStateException at com.= google.common.base.Preconditions.checkState(Preconditions.java:129) at org.= apache.hadoop.ipc.Client.setCallIdAndRetryCount(Client.java:116) at org.apa= che.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.ja= va:99) at com.sun.proxy.$Proxy15.getFileInfo(Unknown Source) at org.apache.= hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1701) at org.apache.hadoop= .hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1124) at o= rg.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem= .java:1120) at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSyst= emLinkResolver.java:81) at org.apache.hadoop.hdfs.DistributedFileSystem.get= FileStatus(DistributedFileSystem.java:1120) at org.apache.hadoop.hive.metas= tore.Warehouse.isDir(Warehouse.java:475) at org.apache.hadoop.hive.metastor= e.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1430) at or= g.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_with_e= nvironment_context(HiveMetaStore.java:1489) ... 18 more was (Author: 5feixiang): 2017-01-16 06:00:50,236 ERROR metastore.RetryingHMSHandler (RetryingHMSHand= ler.java:invoke(155)) - MetaException(message:java.lang.IllegalStateExcepti= on) at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newMetaExc= eption(HiveMetaStore.java:5568) at org.apache.hadoop.hive.metastore.HiveMet= aStore$HMSHandler.create_table_with_environment_context(HiveMetaStore.java:= 1503) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at su= n.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.= java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.= hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:107= ) at com.sun.proxy.$Proxy10.create_table_with_environment_context(Unknown S= ource) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processo= r$create_table_with_environment_context.getResult(ThriftHiveMetastore.java:= 9817) at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor= $create_table_with_environment_context.getResult(ThriftHiveMetastore.java:9= 801) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) = at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProce= ssor.java:110) at org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run= (TUGIBasedProcessor.java:106) at java.security.AccessController.doPrivilege= d(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at o= rg.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.ja= va:1491) at org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUG= IBasedProcessor.java:118) at org.apache.thrift.server.TThreadPoolServer$Wor= kerProcess.run(TThreadPoolServer.java:285) at java.util.concurrent.ThreadPo= olExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.= ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thr= ead.run(Thread.java:745) Caused by: java.lang.IllegalStateException at com.= google.common.base.Preconditions.checkState(Preconditions.java:129) at org.= apache.hadoop.ipc.Client.setCallIdAndRetryCount(Client.java:116) at org.apa= che.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.ja= va:99) at com.sun.proxy.$Proxy15.getFileInfo(Unknown Source) at org.apache.= hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1701) at org.apache.hadoop= .hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1124) at o= rg.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem= .java:1120) at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSyst= emLinkResolver.java:81) at org.apache.hadoop.hdfs.DistributedFileSystem.get= FileStatus(DistributedFileSystem.java:1120) at org.apache.hadoop.hive.metas= tore.Warehouse.isDir(Warehouse.java:475) at org.apache.hadoop.hive.metastor= e.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1430) at or= g.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_with_e= nvironment_context(HiveMetaStore.java:1489) ... 18 more > HDFS client RPC call throws "java.lang.IllegalStateException" > ------------------------------------------------------------- > > Key: HDFS-8409 > URL: https://issues.apache.org/jira/browse/HDFS-8409 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Reporter: Juan Yu > Assignee: Juan Yu > Attachments: HDFS-8409.001.patch, HDFS-8409.002.patch, HDFS-8409.= 003.patch > > > When the HDFS client RPC calls need to retry, it sometimes throws "java.l= ang.IllegalStateException" and retry is aborted and cause the client call w= ill fail. > {code} > Caused by: java.lang.IllegalStateException > =09at com.google.common.base.Preconditions.checkState(Preconditions.java:= 129) > =09at org.apache.hadoop.ipc.Client.setCallIdAndRetryCount(Client.java:116= ) > =09at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvoc= ationHandler.java:99) > =09at com.sun.proxy.$Proxy16.getFileInfo(Unknown Source) > =09at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1912) > =09at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedF= ileSystem.java:1089) > =09at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedF= ileSystem.java:1085) > =09at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkR= esolver.java:81) > =09at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(Distribu= tedFileSystem.java:1085) > =09at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1400) > {code} > Here is the check that throws exception > {code} > public static void setCallIdAndRetryCount(int cid, int rc) { > ... > Preconditions.checkState(callId.get() =3D=3D null); > } > {code} > The RetryInvocationHandler tries to call it with not null callId and caus= es exception. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org