[ 
https://issues.apache.org/jira/browse/HDFS-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271231#comment-13271231
 ] 

Brahma Reddy Battula commented on HDFS-3385:
--------------------------------------------

Hi Nichalos,,thanks for look..

Actually I didn't get exact scenario to reproduce.

First, let me try to reproduce this issue and then I'll verify your patch.

  *fulltrace when I got* 


{noformat}
java.lang.ClassCastException: 
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo cannot be cast to 
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.recoverLeaseInternal(FSNamesystem.java:1782)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1580)
        at 
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.appendFile(FSNamesystem.java:1819)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.append(NameNodeRpcServer.java:416)
        at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.append(ClientNamenodeProtocolServerSideTranslatorPB.java:217)
        at 
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:42592)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:417)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:891)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1661)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1657)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1205)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1655)

        at org.apache.hadoop.ipc.Client.call(Client.java:1159)
        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:185)
        at $Proxy9.append(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:165)
        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:84)
        at $Proxy9.append(Unknown Source)
        at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.append(ClientNamenodeProtocolTranslatorPB.java:214)
        at org.apache.hadoop.hdfs.DFSClient.callAppend(DFSClient.java:1178)
        at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1217)
        at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1205)
        at 
org.apache.hadoop.hdfs.DistributedFileSystem.append(DistributedFileSystem.java:209)
        at org.apache.hadoop.fs.FileSystem.append(FileSystem.java:973)
        at 
com.huawei.isap.test.smartump.hdfs.TestHDFSAPI.appendFile(TestHDFSAPI.java:76)
        at 
com.huawei.isap.test.smartump.hdfs.TestHDFSAPI.main(TestHDFSAPI.java:40
{noformat}
                
> ClassCastException when trying to append a file
> -----------------------------------------------
>
>                 Key: HDFS-3385
>                 URL: https://issues.apache.org/jira/browse/HDFS-3385
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 3.0.0
>         Environment: HDFS
>            Reporter: Brahma Reddy Battula
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: h3385_20120508.patch
>
>
> When I try to append a file I got 
> {noformat}
> 2012-05-08 18:13:40,506 WARN  util.KerberosName 
> (KerberosName.java:<clinit>(87)) - Kerberos krb5 configuration not found, 
> setting default realm to empty
> Exception in thread "main" java.lang.ClassCastException: 
> org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo cannot be cast to 
> org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.recoverLeaseInternal(FSNamesystem.java:1787)
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1584)
>       at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.appendFile(FSNamesystem.java:1824)
>       at 
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.append(NameNodeRpcServer.java:425)
>         ...
>       at org.apache.hadoop.hdfs.DFSClient.callAppend(DFSClient.java:1150)
>       at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1189)
>       at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1177)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem.append(DistributedFileSystem.java:221)
>       at 
> org.apache.hadoop.hdfs.DistributedFileSystem.append(DistributedFileSystem.java:1)
>       at org.apache.hadoop.fs.FileSystem.append(FileSystem.java:981)
>       at 
> org.apache.hadoop.hdfs.server.datanode.DeleteMe.main(DeleteMe.java:26)
> {noformat}

--
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

        

Reply via email to